1<?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-->
16<androidx.coordinatorlayout.widget.CoordinatorLayout
17    xmlns:android="http://schemas.android.com/apk/res/android"
18    xmlns:app="http://schemas.android.com/apk/res-auto"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent">
21
22    <LinearLayout
23        android:layout_width="match_parent"
24        android:layout_height="match_parent"
25        android:orientation="vertical">
26
27        <androidx.appcompat.widget.Toolbar
28            android:id="@+id/toolbar"
29            style="@style/LightToolbarStyle"
30            android:layout_width="match_parent"
31            android:layout_height="?attr/actionBarSize"
32            android:elevation="3dp"
33            android:theme="@style/LightToolbarThemeOverlay"
34            app:navigationContentDescription="@string/sim_import_cancel_content_description"
35            app:navigationIcon="@drawable/quantum_ic_close_vd_theme_24"
36            app:title="@string/sim_import_title_none_selected">
37
38            <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"
43                android:layout_gravity="end|center_vertical"
44                android:text="@string/sim_import_button_text"
45                />
46        </androidx.appcompat.widget.Toolbar>
47
48
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"
54            android:layout_width="match_parent"
55            android:layout_height="wrap_content"
56            android:background="?android:colorBackground"
57            android:focusable="true"
58            android:minHeight="48dp"
59            android:orientation="horizontal"
60            android:paddingEnd="@dimen/activity_horizontal_margin"
61            android:paddingStart="@dimen/activity_horizontal_margin">
62
63            <ImageView
64                android:id="@+id/account_type_icon"
65                android:layout_width="24dp"
66                android:layout_height="24dp"
67                android:layout_gravity="start|center_vertical"
68                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"
77                android:gravity="start|center_vertical"
78                android:lines="1"
79                android:maxLines="1"
80                android:textAlignment="viewStart"
81                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"
88                android:layout_gravity="center_vertical"
89                android:layout_marginEnd="5dp"
90                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"
96                android:scaleType="center"
97                android:src="@drawable/quantum_ic_arrow_drop_down_vd_theme_24"
98                android:tint="?android:textColorSecondary"
99                android:visibility="gone"/>
100        </LinearLayout>
101
102        <FrameLayout
103            android:layout_width="match_parent"
104            android:layout_height="match_parent">
105
106            <ListView
107                android:id="@+id/list"
108                android:layout_width="match_parent"
109                android:layout_height="match_parent"
110                android:clipToPadding="false"
111                android:paddingTop="8dp"/>
112
113            <androidx.core.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</androidx.coordinatorlayout.widget.CoordinatorLayout>
134