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" |
Walter Jang | e6aad76 | 2015-10-22 12:50:02 -0700 | [diff] [blame^] | 24 | android:minHeight="@dimen/editor_min_line_item_height" |
Tingting Wang | 91cee28 | 2015-10-07 13:48:17 -0700 | [diff] [blame] | 25 | android:orientation="horizontal" |
Walter Jang | 2d3f31c | 2015-06-18 23:15:31 -0700 | [diff] [blame] | 26 | android:background="?android:attr/selectableItemBackground" |
Walter Jang | 82acd42 | 2015-10-17 14:01:27 -0700 | [diff] [blame] | 27 | android:visibility="gone" |
Walter Jang | 2d3f31c | 2015-06-18 23:15:31 -0700 | [diff] [blame] | 28 | > |
| 29 | |
Walter Jang | e6aad76 | 2015-10-22 12:50:02 -0700 | [diff] [blame^] | 30 | |
Tingting Wang | 91cee28 | 2015-10-07 13:48:17 -0700 | [diff] [blame] | 31 | <ImageView |
| 32 | android:id="@+id/account_type_icon" |
Walter Jang | e6aad76 | 2015-10-22 12:50:02 -0700 | [diff] [blame^] | 33 | style="@style/EditSelectorIconStyle"/> |
Tingting Wang | 91cee28 | 2015-10-07 13:48:17 -0700 | [diff] [blame] | 34 | |
Walter Jang | 2d3f31c | 2015-06-18 23:15:31 -0700 | [diff] [blame] | 35 | <LinearLayout |
| 36 | android:layout_height="wrap_content" |
| 37 | android:layout_width="0dp" |
| 38 | android:layout_weight="1" |
Tingting Wang | 5fbb556 | 2015-10-22 12:44:57 -0700 | [diff] [blame] | 39 | android:layout_marginStart="@dimen/compact_editor_account_left_margin" |
Walter Jang | e6aad76 | 2015-10-22 12:50:02 -0700 | [diff] [blame^] | 40 | android:layout_gravity="center_vertical" |
Walter Jang | 2d3f31c | 2015-06-18 23:15:31 -0700 | [diff] [blame] | 41 | android:orientation="vertical" |
| 42 | > |
| 43 | |
| 44 | <TextView |
| 45 | android:id="@+id/account_type" |
| 46 | android:layout_width="match_parent" |
| 47 | android:layout_height="wrap_content" |
| 48 | android:textSize="16sp" |
| 49 | android:singleLine="true" |
| 50 | android:textColor="@color/primary_text_color" |
| 51 | android:ellipsize="end" |
| 52 | /> |
| 53 | |
| 54 | <TextView |
| 55 | android:id="@+id/account_name" |
| 56 | android:layout_width="match_parent" |
| 57 | android:layout_height="wrap_content" |
| 58 | android:textSize="14sp" |
| 59 | android:singleLine="true" |
| 60 | android:textColor="@color/secondary_text_color" |
| 61 | android:ellipsize="end" |
| 62 | /> |
| 63 | |
| 64 | </LinearLayout> |
| 65 | |
| 66 | </LinearLayout> |