blob: 43686f35b891b2bc830e8c7dccf540f0c5b8d3a7 [file] [log] [blame]
Walter Jang2d3f31c2015-06-18 23:15:31 -07001<?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 Jange6aad762015-10-22 12:50:02 -070024 android:minHeight="@dimen/editor_min_line_item_height"
Tingting Wang91cee282015-10-07 13:48:17 -070025 android:orientation="horizontal"
Walter Jang2d3f31c2015-06-18 23:15:31 -070026 android:background="?android:attr/selectableItemBackground"
Walter Jang82acd422015-10-17 14:01:27 -070027 android:visibility="gone"
Walter Jang2d3f31c2015-06-18 23:15:31 -070028 >
29
Walter Jange6aad762015-10-22 12:50:02 -070030
Tingting Wang91cee282015-10-07 13:48:17 -070031 <ImageView
32 android:id="@+id/account_type_icon"
Walter Jange6aad762015-10-22 12:50:02 -070033 style="@style/EditSelectorIconStyle"/>
Tingting Wang91cee282015-10-07 13:48:17 -070034
Walter Jang2d3f31c2015-06-18 23:15:31 -070035 <LinearLayout
36 android:layout_height="wrap_content"
37 android:layout_width="0dp"
38 android:layout_weight="1"
Tingting Wang5fbb5562015-10-22 12:44:57 -070039 android:layout_marginStart="@dimen/compact_editor_account_left_margin"
Walter Jange6aad762015-10-22 12:50:02 -070040 android:layout_gravity="center_vertical"
Walter Jang2d3f31c2015-06-18 23:15:31 -070041 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>