2010-11-09 23:20:02 +00:00
|
|
|
<?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.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<!--
|
2011-02-10 00:47:56 +00:00
|
|
|
Not a RelativeLayout - we want to hide @id/email_address at runtime and then @id/display_name
|
|
|
|
should be center-vertical
|
2010-11-09 23:20:02 +00:00
|
|
|
-->
|
2011-02-10 00:47:56 +00:00
|
|
|
<LinearLayout
|
2010-11-09 23:20:02 +00:00
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
2011-02-10 00:47:56 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="64dp"
|
|
|
|
android:orientation="horizontal"
|
2010-11-09 23:20:02 +00:00
|
|
|
>
|
2011-02-10 00:47:56 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_marginLeft="16dp"
|
|
|
|
android:layout_marginRight="16dp"
|
|
|
|
android:maxWidth="@dimen/account_spinner_dropdown_account_name_max_width"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:gravity="center|left"
|
|
|
|
>
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/display_name"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:maxWidth="@dimen/account_spinner_dropdown_account_name_max_width"
|
|
|
|
style="@style/action_bar_account_name"
|
|
|
|
/>
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/email_address"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:maxWidth="@dimen/account_spinner_dropdown_account_name_max_width"
|
|
|
|
style="@style/action_bar_account_name_secondary"
|
|
|
|
/>
|
|
|
|
</LinearLayout>
|
2010-11-09 23:20:02 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/unread_count"
|
|
|
|
android:layout_width="wrap_content"
|
2011-02-10 00:47:56 +00:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_marginRight="16dp"
|
|
|
|
android:gravity="center|right"
|
|
|
|
style="@style/action_bar_unread_count"
|
2010-11-09 23:20:02 +00:00
|
|
|
/>
|
2011-02-10 00:47:56 +00:00
|
|
|
</LinearLayout>
|