blob: 01cc01f6c4e56bb862950c1e272ac54db9e22b33 [file] [log] [blame]
Katherine Kuanffb45de2011-07-25 17:22:22 -07001<?xml version="1.0" encoding="utf-8"?>
Gary Mai46cb3102016-08-10 18:14:09 -07002<!--
3 Copyright (C) 2015 The Android Open Source Project
Katherine Kuanffb45de2011-07-25 17:22:22 -07004
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 Mai46cb3102016-08-10 18:14:09 -070019 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 Mai363af602016-09-28 10:01:23 -070025 android:paddingBottom="@dimen/editor_name_top_margin"
Gary Mai46cb3102016-08-10 18:14:09 -070026 >
27
28
29 <ImageView
30 android:id="@+id/account_type_icon"
31 style="@style/EditSelectorIconStyle"/>
Katherine Kuanffb45de2011-07-25 17:22:22 -070032
33 <LinearLayout
Katherine Kuanffb45de2011-07-25 17:22:22 -070034 android:layout_height="wrap_content"
Gary Mai46cb3102016-08-10 18:14:09 -070035 android:layout_width="0dp"
36 android:layout_weight="1"
Gary Mai363af602016-09-28 10:01:23 -070037 android:layout_marginTop="@dimen/editor_account_header_top_margin"
38 android:layout_marginStart="@dimen/editor_account_left_margin"
Gary Mai46cb3102016-08-10 18:14:09 -070039 android:layout_gravity="center_vertical"
40 android:orientation="vertical"
41 >
Katherine Kuanffb45de2011-07-25 17:22:22 -070042
43 <TextView
Gary Mai46cb3102016-08-10 18:14:09 -070044 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 Kuanffb45de2011-07-25 17:22:22 -070064
65 </LinearLayout>
66
Gary Mai46cb3102016-08-10 18:14:09 -070067 <ImageView
68 android:id="@+id/account_expander_icon"
Gary Mai3e9637f2016-09-06 18:22:55 -070069 android:src="@drawable/ic_menu_expand_minimized_24dp"
70 android:tint="@color/quantum_black_secondary_text"
Katherine Kuanffb45de2011-07-25 17:22:22 -070071 android:layout_width="wrap_content"
Gary Mai46cb3102016-08-10 18:14:09 -070072 android:layout_height="wrap_content"
73 android:layout_gravity="center_vertical|end"
74 android:layout_alignParentEnd="true"
Marcus Hagerott4b112322016-11-18 10:09:32 -080075 android:contentDescription="@string/show_more_content_description"
Gary Mai46cb3102016-08-10 18:14:09 -070076 android:paddingStart="@dimen/editor_round_button_padding_left"
77 android:paddingEnd="@dimen/editor_round_button_padding_right"
78 android:paddingTop="@dimen/editor_round_button_padding_top"
79 android:paddingBottom="@dimen/editor_round_button_padding_bottom"
80 android:visibility="gone"/>
Katherine Kuanffb45de2011-07-25 17:22:22 -070081</LinearLayout>