• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2011 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<RelativeLayout
17    xmlns:android="http://schemas.android.com/apk/res/android"
18    style="@style/AccountSwitchSpinnerItem"
19    android:layout_height="match_parent"
20    android:paddingLeft="0dip"
21    android:layout_marginLeft="0dip">
22
23    <TextView
24        android:id="@+id/spinner_count"
25        android:layout_alignParentRight="true"
26        android:layout_marginLeft="4dp"
27        style="@style/unreadCountActionBar" />
28
29    <!-- This spacer is here just to soak up horizontal space. -->
30    <!-- If this is omitted, the spinner triangle is too far from the text. -->
31    <FrameLayout
32        android:layout_width="match_parent"
33        android:layout_height="match_parent"
34        android:layout_alignParentLeft="true"
35        android:layout_toLeftOf="@id/spinner_count">
36
37        <LinearLayout
38            android:id="@+id/account_spinner"
39            style="?android:attr/actionDropDownStyle"
40            android:layout_width="wrap_content"
41            android:layout_height="match_parent"
42            android:orientation="vertical"
43            android:gravity="center_vertical">
44            <TextView
45                android:id="@+id/spinner_line_1"
46                style="@style/action_bar_spinner_primary_text"
47                android:singleLine="true"
48                android:ellipsize="end"
49                android:includeFontPadding="false"
50                android:layout_width="wrap_content"
51                android:layout_height="wrap_content" />
52            <TextView
53                android:id="@+id/spinner_line_2"
54                style="@android:style/TextAppearance.Holo.Widget.ActionBar.Subtitle"
55                android:singleLine="true"
56                android:ellipsize="end"
57                android:includeFontPadding="false"
58                android:layout_marginRight="4dp"
59                android:layout_width="wrap_content"
60                android:layout_height="wrap_content" />
61        </LinearLayout>
62
63    </FrameLayout>
64
65</RelativeLayout>