1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2011 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<LinearLayout
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent"
21    android:orientation="vertical">
22
23    <!-- See group_browse_list_item.xml for the reason for the transparent android:listSelector -->
24    <view
25      android:id="@+id/list"
26      class="com.android.contacts.common.list.AutoScrollListView"
27      android:layout_width="match_parent"
28      android:layout_height="0dip"
29      android:paddingLeft="16dip"
30      android:paddingRight="16dip"
31      android:paddingStart="16dip"
32      android:paddingEnd="16dip"
33      android:scrollbarStyle="outsideOverlay"
34      android:layout_weight="1"
35      android:fadingEdge="none"
36      android:cacheColorHint="@android:color/transparent"
37      android:divider="@null"
38      android:listSelector="@android:color/transparent"/>
39
40    <TextView
41        android:id="@+id/empty"
42        android:layout_marginTop="@dimen/empty_message_top_margin"
43        android:layout_width="match_parent"
44        android:layout_height="wrap_content"
45        android:gravity="center_horizontal"
46        android:textAppearance="?android:attr/textAppearanceLarge"
47        android:textColor="?android:attr/textColorSecondary"
48        android:text="@string/noGroups" />
49
50    <LinearLayout
51      android:id="@+id/add_accounts"
52      android:layout_width="wrap_content"
53      android:layout_height="wrap_content"
54      android:layout_gravity="center_horizontal"
55      android:orientation="vertical">
56
57      <TextView
58        android:layout_width="wrap_content"
59        android:layout_height="wrap_content"
60        android:gravity="center_horizontal"
61        android:layout_marginBottom="@dimen/no_accounts_message_margin"
62        android:textAppearance="?android:attr/textAppearanceSmall"
63        android:textColor="?android:attr/textColorSecondary"
64        android:text="@string/noAccounts" />
65
66      <Button
67        android:id="@+id/add_account_button"
68        android:layout_width="wrap_content"
69        android:layout_height="wrap_content"
70        android:gravity="center"
71        android:layout_gravity="center_horizontal"
72        android:textAppearance="?android:attr/textAppearanceMedium"
73        android:text="@string/contacts_unavailable_add_account" />
74
75    </LinearLayout>
76</LinearLayout>
77