Walter Jang | 2d3f31c | 2015-06-18 23:15:31 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2015 The Android Open Source Project |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | |
| 18 | <!-- Copy of editor_account_header_expandable, but w/o the expand account button. --> |
| 19 | <LinearLayout |
| 20 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 21 | android:id="@+id/account_container" |
| 22 | android:layout_height="wrap_content" |
| 23 | android:layout_width="match_parent" |
Tingting Wang | 91cee28 | 2015-10-07 13:48:17 -0700 | [diff] [blame^] | 24 | android:orientation="horizontal" |
Walter Jang | 2d3f31c | 2015-06-18 23:15:31 -0700 | [diff] [blame] | 25 | android:background="?android:attr/selectableItemBackground" |
Tingting Wang | 91cee28 | 2015-10-07 13:48:17 -0700 | [diff] [blame^] | 26 | android:paddingTop="8dip" |
Walter Jang | 2d3f31c | 2015-06-18 23:15:31 -0700 | [diff] [blame] | 27 | > |
| 28 | |
Tingting Wang | 91cee28 | 2015-10-07 13:48:17 -0700 | [diff] [blame^] | 29 | <ImageView |
| 30 | android:id="@+id/account_type_icon" |
| 31 | android:layout_width="@dimen/detail_network_icon_size" |
| 32 | android:layout_height="@dimen/detail_network_icon_size" |
| 33 | android:layout_margin="16dip" |
| 34 | android:layout_gravity="center_vertical" /> |
| 35 | |
Walter Jang | 2d3f31c | 2015-06-18 23:15:31 -0700 | [diff] [blame] | 36 | <LinearLayout |
| 37 | android:layout_height="wrap_content" |
| 38 | android:layout_width="0dp" |
| 39 | android:layout_weight="1" |
| 40 | android:paddingBottom="24dp" |
| 41 | android:paddingTop="24dp" |
| 42 | android:orientation="vertical" |
| 43 | > |
| 44 | |
| 45 | <TextView |
| 46 | android:id="@+id/account_type" |
| 47 | android:layout_width="match_parent" |
| 48 | android:layout_height="wrap_content" |
| 49 | android:textSize="16sp" |
| 50 | android:singleLine="true" |
| 51 | android:textColor="@color/primary_text_color" |
| 52 | android:ellipsize="end" |
| 53 | /> |
| 54 | |
| 55 | <TextView |
| 56 | android:id="@+id/account_name" |
| 57 | android:layout_width="match_parent" |
| 58 | android:layout_height="wrap_content" |
| 59 | android:textSize="14sp" |
| 60 | android:singleLine="true" |
| 61 | android:textColor="@color/secondary_text_color" |
| 62 | android:ellipsize="end" |
| 63 | /> |
| 64 | |
| 65 | </LinearLayout> |
| 66 | |
| 67 | </LinearLayout> |