Home | History | Annotate | Download | only in layout
      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.widget.AutoScrollListView"
     27       android:layout_width="match_parent"
     28       android:layout_height="0dip"
     29       android:paddingLeft="16dip"
     30       android:paddingRight="16dip"
     31       android:scrollbarStyle="outsideOverlay"
     32       android:layout_weight="1"
     33       android:fadingEdge="none"
     34       android:cacheColorHint="@android:color/transparent"
     35       android:divider="@null"
     36       android:listSelector="@android:color/transparent"/>
     37 
     38     <TextView
     39         android:id="@+id/empty"
     40         android:layout_marginTop="@dimen/empty_message_top_margin"
     41         android:layout_width="match_parent"
     42         android:layout_height="wrap_content"
     43         android:gravity="center_horizontal"
     44         android:textAppearance="?android:attr/textAppearanceLarge"
     45         android:textColor="?android:attr/textColorSecondary"
     46         android:text="@string/noGroups" />
     47 
     48     <LinearLayout
     49       android:id="@+id/add_accounts"
     50       android:layout_width="wrap_content"
     51       android:layout_height="wrap_content"
     52       android:layout_gravity="center_horizontal"
     53       android:orientation="vertical">
     54 
     55       <TextView
     56         android:layout_width="wrap_content"
     57         android:layout_height="wrap_content"
     58         android:gravity="center_horizontal"
     59         android:layout_marginBottom="@dimen/no_accounts_message_margin"
     60         android:textAppearance="?android:attr/textAppearanceSmall"
     61         android:textColor="?android:attr/textColorSecondary"
     62         android:text="@string/noAccounts" />
     63 
     64       <Button
     65         android:id="@+id/add_account_button"
     66         android:layout_width="wrap_content"
     67         android:layout_height="wrap_content"
     68         android:gravity="center"
     69         android:layout_gravity="center_horizontal"
     70         android:textAppearance="?android:attr/textAppearanceMedium"
     71         android:text="@string/contacts_unavailable_add_account" />
     72 
     73     </LinearLayout>
     74 </LinearLayout>
     75