Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3      Copyright (C) 2013 Google Inc.
      4      Licensed to The Android Open Source Project.
      5 
      6      Licensed under the Apache License, Version 2.0 (the "License");
      7      you may not use this file except in compliance with the License.
      8      You may obtain a copy of the License at
      9 
     10           http://www.apache.org/licenses/LICENSE-2.0
     11 
     12      Unless required by applicable law or agreed to in writing, software
     13      distributed under the License is distributed on an "AS IS" BASIS,
     14      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     15      See the License for the specific language governing permissions and
     16      limitations under the License.
     17 -->
     18 
     19 <com.android.mail.ui.AccountItemView
     20     xmlns:android="http://schemas.android.com/apk/res/android"
     21     android:layout_height="wrap_content"
     22     android:layout_width="match_parent"
     23     android:minHeight="@dimen/account_item_minimum_height"
     24     android:background="@drawable/account_item">
     25 
     26     <ImageView
     27         android:id="@+id/account_graphic"
     28         style="@style/AccountItemIcon"
     29         android:layout_alignParentLeft="true"
     30         android:layout_alignParentTop="true" />
     31 
     32     <ImageView
     33         android:id="@+id/account_radio_button"
     34         android:layout_width="wrap_content"
     35         android:layout_height="wrap_content"
     36         android:layout_marginLeft="@dimen/account_item_left_margin"
     37         android:src="@drawable/account_radio_button"
     38         android:layout_centerVertical="true"/>
     39 
     40     <TextView
     41         android:id="@+id/unread"
     42         style="@style/UnreadCount"
     43         android:layout_marginRight="@dimen/account_item_right_margin"
     44         android:layout_alignParentRight="true"
     45         android:textColor="@color/account_item_text_color" />
     46 
     47     <TextView
     48         android:id="@+id/name"
     49         android:layout_height="wrap_content"
     50         android:layout_width="wrap_content"
     51         android:layout_toRightOf="@id/account_radio_button"
     52         android:layout_toLeftOf="@id/unread"
     53         android:layout_alignWithParentIfMissing="true"
     54         android:layout_marginLeft="@dimen/account_item_left_margin"
     55         android:layout_marginRight="@dimen/account_item_right_margin"
     56         android:layout_centerVertical="true"
     57         android:includeFontPadding="false"
     58         android:singleLine="true"
     59         android:ellipsize="end"
     60         android:textColor="@color/account_item_text_color"
     61         android:textAppearance="?android:attr/textAppearanceMedium" />
     62 
     63 </com.android.mail.ui.AccountItemView>
     64