Katherine Kuan | ffb45de | 2011-07-25 17:22:22 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
Gary Mai | 46cb310 | 2016-08-10 18:14:09 -0700 | [diff] [blame] | 2 | <!-- |
| 3 | Copyright (C) 2015 The Android Open Source Project |
Katherine Kuan | ffb45de | 2011-07-25 17:22:22 -0700 | [diff] [blame] | 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 | <LinearLayout |
Gary Mai | 46cb310 | 2016-08-10 18:14:09 -0700 | [diff] [blame] | 19 | xmlns:android="http://schemas.android.com/apk/res/android" |
| 20 | android:id="@+id/account_header_container" |
| 21 | android:layout_height="wrap_content" |
| 22 | android:layout_width="match_parent" |
| 23 | android:minHeight="@dimen/editor_min_line_item_height" |
| 24 | android:orientation="horizontal" |
Gary Mai | 363af60 | 2016-09-28 10:01:23 -0700 | [diff] [blame^] | 25 | android:paddingBottom="@dimen/editor_name_top_margin" |
Gary Mai | 46cb310 | 2016-08-10 18:14:09 -0700 | [diff] [blame] | 26 | > |
| 27 | |
| 28 | |
| 29 | <ImageView |
| 30 | android:id="@+id/account_type_icon" |
| 31 | style="@style/EditSelectorIconStyle"/> |
Katherine Kuan | ffb45de | 2011-07-25 17:22:22 -0700 | [diff] [blame] | 32 | |
| 33 | <LinearLayout |
Katherine Kuan | ffb45de | 2011-07-25 17:22:22 -0700 | [diff] [blame] | 34 | android:layout_height="wrap_content" |
Gary Mai | 46cb310 | 2016-08-10 18:14:09 -0700 | [diff] [blame] | 35 | android:layout_width="0dp" |
| 36 | android:layout_weight="1" |
Gary Mai | 363af60 | 2016-09-28 10:01:23 -0700 | [diff] [blame^] | 37 | android:layout_marginTop="@dimen/editor_account_header_top_margin" |
| 38 | android:layout_marginStart="@dimen/editor_account_left_margin" |
Gary Mai | 46cb310 | 2016-08-10 18:14:09 -0700 | [diff] [blame] | 39 | android:layout_gravity="center_vertical" |
| 40 | android:orientation="vertical" |
| 41 | > |
Katherine Kuan | ffb45de | 2011-07-25 17:22:22 -0700 | [diff] [blame] | 42 | |
| 43 | <TextView |
Gary Mai | 46cb310 | 2016-08-10 18:14:09 -0700 | [diff] [blame] | 44 | android:id="@+id/account_type" |
| 45 | android:layout_width="match_parent" |
| 46 | android:layout_height="wrap_content" |
| 47 | android:textSize="16sp" |
| 48 | android:singleLine="true" |
| 49 | android:textColor="@color/primary_text_color" |
| 50 | android:ellipsize="end" |
| 51 | android:textAlignment="viewStart" |
| 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 | android:textAlignment="viewStart" |
| 63 | /> |
Katherine Kuan | ffb45de | 2011-07-25 17:22:22 -0700 | [diff] [blame] | 64 | |
| 65 | </LinearLayout> |
| 66 | |
Gary Mai | 46cb310 | 2016-08-10 18:14:09 -0700 | [diff] [blame] | 67 | <ImageView |
| 68 | android:id="@+id/account_expander_icon" |
Gary Mai | 3e9637f | 2016-09-06 18:22:55 -0700 | [diff] [blame] | 69 | android:src="@drawable/ic_menu_expand_minimized_24dp" |
| 70 | android:tint="@color/quantum_black_secondary_text" |
Katherine Kuan | ffb45de | 2011-07-25 17:22:22 -0700 | [diff] [blame] | 71 | android:layout_width="wrap_content" |
Gary Mai | 46cb310 | 2016-08-10 18:14:09 -0700 | [diff] [blame] | 72 | android:layout_height="wrap_content" |
| 73 | android:layout_gravity="center_vertical|end" |
| 74 | android:layout_alignParentEnd="true" |
| 75 | android:paddingStart="@dimen/editor_round_button_padding_left" |
| 76 | android:paddingEnd="@dimen/editor_round_button_padding_right" |
| 77 | android:paddingTop="@dimen/editor_round_button_padding_top" |
| 78 | android:paddingBottom="@dimen/editor_round_button_padding_bottom" |
| 79 | android:visibility="gone"/> |
Katherine Kuan | ffb45de | 2011-07-25 17:22:22 -0700 | [diff] [blame] | 80 | </LinearLayout> |