Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2010 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 <!--
     18     The list items for the account spinner drop down.
     19     Popup width is set at runtime from @dimen/account_dropdown_dropdownwidth
     20 -->
     21 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     22     style="?android:attr/spinnerDropDownItemStyle"
     23     android:layout_height="wrap_content"
     24     android:layout_width="match_parent"
     25     android:gravity="center_vertical"
     26     android:minHeight="?android:attr/listPreferredItemHeightSmall">
     27 
     28     <RelativeLayout
     29         android:layout_height="wrap_content"
     30         android:layout_width="0dip"
     31         android:layout_weight="1">
     32         <TextView
     33             android:id="@+id/display_name"
     34             android:singleLine="true"
     35             android:layout_height="wrap_content"
     36             android:layout_width="match_parent"
     37             android:ellipsize="end"
     38             style="@android:style/TextAppearance.Holo.Widget.ActionBar.Title"/>
     39 
     40         <TextView
     41             android:id="@+id/email_address"
     42             android:layout_height="wrap_content"
     43             android:layout_width="match_parent"
     44             android:ellipsize="end"
     45             android:layout_below="@id/display_name"
     46             android:layout_alignWithParentIfMissing="true"
     47             android:layout_centerVertical="true"
     48             style="@android:style/TextAppearance.Holo.Widget.ActionBar.Subtitle"/>
     49 
     50     </RelativeLayout>
     51     <RelativeLayout
     52         android:layout_height="wrap_content"
     53         android:layout_width="wrap_content">
     54         <View
     55             android:id="@+id/color_chip"
     56             android:layout_width="32dip"
     57             android:layout_height="6dip"
     58             android:layout_marginBottom="2dip"
     59             android:layout_alignParentTop="true"
     60             android:layout_marginLeft="8dip"
     61             android:background="@android:color/black"
     62             />
     63         <TextView
     64             android:id="@+id/unread_count"
     65             style="@style/unreadCount"
     66             android:layout_centerVertical="true" />
     67     </RelativeLayout>
     68 
     69 </LinearLayout>
     70 
     71