Makoto Onuki | 4689cb7 | 2011-06-26 17:15:12 -0700 | [diff] [blame] | 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 | --> |
Mindy Pereira | 0730c4f | 2011-11-09 15:33:10 -0800 | [diff] [blame] | 16 | <RelativeLayout |
Makoto Onuki | 4689cb7 | 2011-06-26 17:15:12 -0700 | [diff] [blame] | 17 | xmlns:android="http://schemas.android.com/apk/res/android" |
Mindy Pereira | 0730c4f | 2011-11-09 15:33:10 -0800 | [diff] [blame] | 18 | style="@style/AccountSwitchSpinnerItem" |
Ben Komalo | ed494cd | 2011-08-08 16:58:48 -0700 | [diff] [blame] | 19 | android:layout_height="match_parent" |
Mindy Pereira | 0730c4f | 2011-11-09 15:33:10 -0800 | [diff] [blame] | 20 | android:paddingLeft="0dip" |
| 21 | android:layout_marginLeft="0dip"> |
| 22 | |
Ben Komalo | 263d0ec | 2011-08-02 13:59:51 -0700 | [diff] [blame] | 23 | <TextView |
| 24 | android:id="@+id/spinner_count" |
Mindy Pereira | 0730c4f | 2011-11-09 15:33:10 -0800 | [diff] [blame] | 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" |
Andy Huang | a7d1b5c | 2011-12-07 18:28:41 -0800 | [diff] [blame^] | 46 | style="@style/AccountSpinnerAnchorTextPrimary" |
Mindy Pereira | 0730c4f | 2011-11-09 15:33:10 -0800 | [diff] [blame] | 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" |
Andy Huang | a7d1b5c | 2011-12-07 18:28:41 -0800 | [diff] [blame^] | 54 | style="@style/AccountSpinnerAnchorTextSecondary" |
Mindy Pereira | 0730c4f | 2011-11-09 15:33:10 -0800 | [diff] [blame] | 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> |