blob: 09e2c6694ce4ceeca043a1c49dcb994cc3820e65 [file] [log] [blame]
Marcus Hagerott819214d2016-09-29 14:58:27 -07001<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2016 The Android Open Source Project
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15-->
Marcus Hagerott2aa31982016-10-25 14:36:25 -070016<android.support.design.widget.CoordinatorLayout
17 xmlns:android="http://schemas.android.com/apk/res/android"
Marcus Hagerott819214d2016-09-29 14:58:27 -070018 xmlns:app="http://schemas.android.com/apk/res-auto"
19 android:layout_width="match_parent"
Marcus Hagerott2aa31982016-10-25 14:36:25 -070020 android:layout_height="match_parent">
Marcus Hagerott819214d2016-09-29 14:58:27 -070021
Marcus Hagerott2aa31982016-10-25 14:36:25 -070022 <LinearLayout
Marcus Hagerott819214d2016-09-29 14:58:27 -070023 android:layout_width="match_parent"
Marcus Hagerott2aa31982016-10-25 14:36:25 -070024 android:layout_height="match_parent"
25 android:orientation="vertical">
Marcus Hagerott819214d2016-09-29 14:58:27 -070026
Marcus Hagerott2aa31982016-10-25 14:36:25 -070027 <android.support.v7.widget.Toolbar
28 android:id="@+id/toolbar"
Marcus Hagerott7217e692016-11-10 10:18:28 -080029 style="@style/LightToolbarStyle"
Marcus Hagerott819214d2016-09-29 14:58:27 -070030 android:layout_width="match_parent"
Marcus Hagerott2aa31982016-10-25 14:36:25 -070031 android:layout_height="?attr/actionBarSize"
Marcus Hagerott7217e692016-11-10 10:18:28 -080032 android:elevation="3dp"
33 android:theme="@style/LightToolbarThemeOverlay"
Marcus Hagerott2aa31982016-10-25 14:36:25 -070034 app:navigationContentDescription="@string/sim_import_cancel_content_description"
John Shaobd9ef3c2016-12-15 12:42:03 -080035 app:navigationIcon="@drawable/quantum_ic_close_vd_theme_24"
Marcus Hagerott2aa31982016-10-25 14:36:25 -070036 app:title="@string/sim_import_title_none_selected">
Marcus Hagerott819214d2016-09-29 14:58:27 -070037
Marcus Hagerott2aa31982016-10-25 14:36:25 -070038 <Button
39 android:id="@+id/import_button"
40 style="@style/Widget.AppCompat.Button.Borderless"
41 android:layout_width="wrap_content"
42 android:layout_height="wrap_content"
Marcus Hagerott629284b2016-11-11 16:45:00 -080043 android:layout_gravity="end|center_vertical"
Marcus Hagerott2aa31982016-10-25 14:36:25 -070044 android:text="@string/sim_import_button_text"
45 />
46 </android.support.v7.widget.Toolbar>
47
Marcus Hagerott7217e692016-11-10 10:18:28 -080048
49 <!-- This is managed by AccountHeaderPresenter so the IDs in this section must
50 match the equivalent views in layout/editor_account_header.xml -->
51 <LinearLayout
52 xmlns:android="http://schemas.android.com/apk/res/android"
53 android:id="@+id/account_header_container"
Marcus Hagerott2aa31982016-10-25 14:36:25 -070054 android:layout_width="match_parent"
Marcus Hagerott819214d2016-09-29 14:58:27 -070055 android:layout_height="wrap_content"
Marcus Hagerott2aa31982016-10-25 14:36:25 -070056 android:background="?android:colorBackground"
Marcus Hagerottd3869c72016-11-21 11:13:44 -080057 android:focusable="true"
Marcus Hagerott7217e692016-11-10 10:18:28 -080058 android:minHeight="48dp"
59 android:orientation="horizontal"
Marcus Hagerotte1275792016-11-17 10:41:12 -080060 android:paddingEnd="@dimen/activity_horizontal_margin"
61 android:paddingStart="@dimen/activity_horizontal_margin">
Marcus Hagerott819214d2016-09-29 14:58:27 -070062
Marcus Hagerott7217e692016-11-10 10:18:28 -080063 <ImageView
64 android:id="@+id/account_type_icon"
65 android:layout_width="24dp"
66 android:layout_height="24dp"
Marcus Hagerotta8569142016-11-28 17:10:12 -080067 android:layout_gravity="start|center_vertical"
Marcus Hagerott7217e692016-11-10 10:18:28 -080068 android:layout_marginEnd="32dp"/>
69
70 <TextView
71 android:id="@+id/account_name"
72 android:layout_width="0dp"
73 android:layout_height="wrap_content"
74 android:layout_gravity="center_vertical"
75 android:layout_weight="1"
76 android:ellipsize="end"
Marcus Hagerotta8569142016-11-28 17:10:12 -080077 android:gravity="start|center_vertical"
Marcus Hagerott7217e692016-11-10 10:18:28 -080078 android:lines="1"
79 android:maxLines="1"
Marcus Hagerotta8569142016-11-28 17:10:12 -080080 android:textAlignment="viewStart"
Marcus Hagerott7217e692016-11-10 10:18:28 -080081 android:textColor="@color/secondary_text_color"
82 android:textSize="16sp"/>
83
84 <ImageView
85 android:id="@+id/account_expander_icon"
86 android:layout_width="wrap_content"
87 android:layout_height="wrap_content"
Marcus Hagerott7217e692016-11-10 10:18:28 -080088 android:layout_gravity="center_vertical"
Marcus Hagerotte1275792016-11-17 10:41:12 -080089 android:layout_marginEnd="5dp"
Marcus Hagerott4b112322016-11-18 10:09:32 -080090 android:background="@null"
91 android:clickable="true"
92 android:contentDescription="@string/show_more_content_description"
93 android:focusable="true"
94 android:minHeight="0dp"
95 android:minWidth="0dp"
Marcus Hagerott7217e692016-11-10 10:18:28 -080096 android:scaleType="center"
John Shaobd9ef3c2016-12-15 12:42:03 -080097 android:src="@drawable/quantum_ic_arrow_drop_down_vd_theme_24"
Marcus Hagerott7217e692016-11-10 10:18:28 -080098 android:tint="?android:textColorSecondary"
99 android:visibility="gone"/>
100 </LinearLayout>
Marcus Hagerott819214d2016-09-29 14:58:27 -0700101
Marcus Hagerott2aa31982016-10-25 14:36:25 -0700102 <FrameLayout
103 android:layout_width="match_parent"
104 android:layout_height="match_parent">
Marcus Hagerott819214d2016-09-29 14:58:27 -0700105
Marcus Hagerott2aa31982016-10-25 14:36:25 -0700106 <ListView
107 android:id="@+id/list"
108 android:layout_width="match_parent"
Marcus Hagerottb0914bc2016-11-02 11:08:43 -0700109 android:layout_height="match_parent"
Marcus Hagerott25251582016-11-03 14:00:07 -0700110 android:clipToPadding="false"
111 android:paddingTop="8dp"/>
Marcus Hagerott2aa31982016-10-25 14:36:25 -0700112
113 <android.support.v4.widget.ContentLoadingProgressBar
114 android:id="@+id/loading_progress"
115 style="@style/Widget.AppCompat.ProgressBar"
116 android:layout_width="wrap_content"
117 android:layout_height="wrap_content"
118 android:layout_gravity="center"
119 android:indeterminate="true"/>
120
121 <TextView
122 android:id="@+id/empty_message"
123 android:layout_width="wrap_content"
124 android:layout_height="wrap_content"
125 android:layout_gravity="center"
126 android:text="@string/sim_import_empty_message"
127 android:textAppearance="?android:textAppearanceMedium"
128 android:visibility="gone"/>
129
130 </FrameLayout>
131
132 </LinearLayout>
133</android.support.design.widget.CoordinatorLayout>