Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2009 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 <!-- extends RelativeLayout  -->
     18 <!--
     19   NOTE: Don't set padding for this.
     20   Background of this view will be changed by code for D&D, which resets padding.
     21 -->
     22 <com.android.email.activity.MailboxListItem
     23     xmlns:android="http://schemas.android.com/apk/res/android"
     24     android:layout_width="match_parent"
     25     android:layout_height="48dip"
     26     android:background="?android:attr/activatedBackgroundIndicator"
     27     >
     28     <TextView
     29         android:id="@+id/message_count"
     30         android:layout_alignParentRight="true"
     31         android:layout_marginRight="@dimen/mailbox_list_padding_right"
     32         style="@style/unreadCount"
     33         />
     34     <RelativeLayout
     35         android:layout_alignParentLeft="true"
     36         android:layout_centerVertical="true"
     37         android:layout_width="wrap_content"
     38         android:layout_height="wrap_content"
     39         android:layout_marginLeft="@dimen/mailbox_list_padding_left"
     40         android:layout_toLeftOf="@id/message_count"
     41         >
     42         <ImageView
     43             android:id="@+id/folder_icon"
     44             android:layout_width="32dip"
     45             android:layout_height="32dip"
     46             android:layout_centerVertical="true"
     47             android:layout_marginRight="8dip"
     48             />
     49         <TextView
     50             android:id="@+id/mailbox_name"
     51             android:layout_width="wrap_content"
     52             android:layout_height="wrap_content"
     53             android:layout_toRightOf="@id/folder_icon"
     54             android:layout_centerVertical="true"
     55             android:ellipsize="end"
     56             android:singleLine="true"
     57             android:textSize="18dip"
     58             android:textColor="@color/text_color_primary_invertible"
     59             />
     60     </RelativeLayout>
     61     <!-- Color chips are shown only for account rows on combined view. -->
     62     <View
     63         android:id="@+id/color_chip"
     64         android:layout_width="32dip"
     65         android:layout_height="8dip"
     66         android:layout_marginLeft="@dimen/mailbox_list_padding_left"
     67         android:layout_alignParentTop="true"
     68         android:layout_alignParentLeft="true"
     69         android:visibility="gone"
     70         />
     71     <ImageView
     72         android:id="@+id/folder_expanded_icon"
     73         android:layout_width="16dip"
     74         android:layout_height="16dip"
     75         android:layout_alignParentBottom="true"
     76         android:layout_alignParentRight="true"
     77         android:visibility="gone"
     78         />
     79 </com.android.email.activity.MailboxListItem>
     80