blob: a3b1cf2605474420e8b00fc9e7db7f29fbbeb657 [file] [log] [blame]
Makoto Onuki4689cb72011-06-26 17:15:12 -07001<?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-->
Mindy Pereira0730c4f2011-11-09 15:33:10 -080016<RelativeLayout
Makoto Onuki4689cb72011-06-26 17:15:12 -070017 xmlns:android="http://schemas.android.com/apk/res/android"
Mindy Pereira0730c4f2011-11-09 15:33:10 -080018 style="@style/AccountSwitchSpinnerItem"
Ben Komaloed494cd2011-08-08 16:58:48 -070019 android:layout_height="match_parent"
Mindy Pereira0730c4f2011-11-09 15:33:10 -080020 android:paddingLeft="0dip"
21 android:layout_marginLeft="0dip">
22
Ben Komalo263d0ec2011-08-02 13:59:51 -070023 <TextView
24 android:id="@+id/spinner_count"
Mindy Pereira0730c4f2011-11-09 15:33:10 -080025 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"
Andy Huanga7d1b5c2011-12-07 18:28:41 -080046 style="@style/AccountSpinnerAnchorTextPrimary"
Mindy Pereira0730c4f2011-11-09 15:33:10 -080047 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"
Andy Huanga7d1b5c2011-12-07 18:28:41 -080054 style="@style/AccountSpinnerAnchorTextSecondary"
Mindy Pereira0730c4f2011-11-09 15:33:10 -080055 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>