19bc1921f2
* use common styles for spinner anchor and dropdown text (introduced in I3063cfea) * allow dropdown item height to scale beyond fixed height to fit huge text Other fixes: * use Gmail's color for dropdown and folder list header text * remove spurious divider in dropdown items that precede a header Bug: 5687252 Change-Id: Iafd5d1dc7c3809393c3892138b42b7274fb03a27
71 lines
2.6 KiB
XML
71 lines
2.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2010 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<!--
|
|
The list items for the account spinner drop down.
|
|
Popup width is set at runtime from @dimen/account_dropdown_dropdownwidth
|
|
-->
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
style="?android:attr/spinnerDropDownItemStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="48dip"
|
|
android:gravity="center_vertical">
|
|
|
|
<RelativeLayout
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="0dip"
|
|
android:layout_weight="1">
|
|
<TextView
|
|
android:id="@+id/display_name"
|
|
android:singleLine="true"
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="match_parent"
|
|
android:ellipsize="end"
|
|
style="@style/AccountSpinnerDropdownTextPrimary" />
|
|
|
|
<TextView
|
|
android:id="@+id/email_address"
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="match_parent"
|
|
android:ellipsize="end"
|
|
android:layout_below="@id/display_name"
|
|
android:layout_alignWithParentIfMissing="true"
|
|
android:layout_centerVertical="true"
|
|
style="@style/AccountSpinnerDropdownTextSecondary" />
|
|
|
|
</RelativeLayout>
|
|
<RelativeLayout
|
|
android:layout_height="wrap_content"
|
|
android:layout_width="wrap_content">
|
|
<View
|
|
android:id="@+id/color_chip"
|
|
android:layout_width="32dip"
|
|
android:layout_height="6dip"
|
|
android:layout_marginBottom="2dip"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_marginLeft="8dip"
|
|
android:background="@android:color/black"
|
|
/>
|
|
<TextView
|
|
android:id="@+id/unread_count"
|
|
style="@style/unreadCount"
|
|
android:layout_centerVertical="true" />
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|
|
|