Marcus Hagerott | 819214d | 2016-09-29 14:58:27 -0700 | [diff] [blame] | 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 | --> |
Marcus Hagerott | 2aa3198 | 2016-10-25 14:36:25 -0700 | [diff] [blame] | 16 | <android.support.design.widget.CoordinatorLayout |
| 17 | xmlns:android="http://schemas.android.com/apk/res/android" |
Marcus Hagerott | 819214d | 2016-09-29 14:58:27 -0700 | [diff] [blame] | 18 | xmlns:app="http://schemas.android.com/apk/res-auto" |
| 19 | android:layout_width="match_parent" |
Marcus Hagerott | 2aa3198 | 2016-10-25 14:36:25 -0700 | [diff] [blame] | 20 | android:layout_height="match_parent"> |
Marcus Hagerott | 819214d | 2016-09-29 14:58:27 -0700 | [diff] [blame] | 21 | |
Marcus Hagerott | 2aa3198 | 2016-10-25 14:36:25 -0700 | [diff] [blame] | 22 | <LinearLayout |
Marcus Hagerott | 819214d | 2016-09-29 14:58:27 -0700 | [diff] [blame] | 23 | android:layout_width="match_parent" |
Marcus Hagerott | 2aa3198 | 2016-10-25 14:36:25 -0700 | [diff] [blame] | 24 | android:layout_height="match_parent" |
| 25 | android:orientation="vertical"> |
Marcus Hagerott | 819214d | 2016-09-29 14:58:27 -0700 | [diff] [blame] | 26 | |
Marcus Hagerott | 2aa3198 | 2016-10-25 14:36:25 -0700 | [diff] [blame] | 27 | <android.support.v7.widget.Toolbar |
| 28 | android:id="@+id/toolbar" |
Marcus Hagerott | 7217e69 | 2016-11-10 10:18:28 -0800 | [diff] [blame] | 29 | style="@style/LightToolbarStyle" |
Marcus Hagerott | 819214d | 2016-09-29 14:58:27 -0700 | [diff] [blame] | 30 | android:layout_width="match_parent" |
Marcus Hagerott | 2aa3198 | 2016-10-25 14:36:25 -0700 | [diff] [blame] | 31 | android:layout_height="?attr/actionBarSize" |
Marcus Hagerott | 7217e69 | 2016-11-10 10:18:28 -0800 | [diff] [blame] | 32 | android:elevation="3dp" |
| 33 | android:theme="@style/LightToolbarThemeOverlay" |
Marcus Hagerott | 2aa3198 | 2016-10-25 14:36:25 -0700 | [diff] [blame] | 34 | app:navigationContentDescription="@string/sim_import_cancel_content_description" |
Marcus Hagerott | 7217e69 | 2016-11-10 10:18:28 -0800 | [diff] [blame] | 35 | app:navigationIcon="@drawable/ic_close_24dp" |
Marcus Hagerott | 2aa3198 | 2016-10-25 14:36:25 -0700 | [diff] [blame] | 36 | app:title="@string/sim_import_title_none_selected"> |
Marcus Hagerott | 819214d | 2016-09-29 14:58:27 -0700 | [diff] [blame] | 37 | |
Marcus Hagerott | 2aa3198 | 2016-10-25 14:36:25 -0700 | [diff] [blame] | 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" |
Marcus Hagerott | 629284b | 2016-11-11 16:45:00 -0800 | [diff] [blame] | 43 | android:layout_gravity="end|center_vertical" |
Marcus Hagerott | 2aa3198 | 2016-10-25 14:36:25 -0700 | [diff] [blame] | 44 | android:text="@string/sim_import_button_text" |
| 45 | /> |
| 46 | </android.support.v7.widget.Toolbar> |
| 47 | |
Marcus Hagerott | 7217e69 | 2016-11-10 10:18:28 -0800 | [diff] [blame] | 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" |
Marcus Hagerott | 2aa3198 | 2016-10-25 14:36:25 -0700 | [diff] [blame] | 54 | android:layout_width="match_parent" |
Marcus Hagerott | 819214d | 2016-09-29 14:58:27 -0700 | [diff] [blame] | 55 | android:layout_height="wrap_content" |
Marcus Hagerott | 2aa3198 | 2016-10-25 14:36:25 -0700 | [diff] [blame] | 56 | android:background="?android:colorBackground" |
Marcus Hagerott | d3869c7 | 2016-11-21 11:13:44 -0800 | [diff] [blame] | 57 | android:focusable="true" |
Marcus Hagerott | 7217e69 | 2016-11-10 10:18:28 -0800 | [diff] [blame] | 58 | android:minHeight="48dp" |
| 59 | android:orientation="horizontal" |
Marcus Hagerott | e127579 | 2016-11-17 10:41:12 -0800 | [diff] [blame] | 60 | android:paddingEnd="@dimen/activity_horizontal_margin" |
| 61 | android:paddingStart="@dimen/activity_horizontal_margin"> |
Marcus Hagerott | 819214d | 2016-09-29 14:58:27 -0700 | [diff] [blame] | 62 | |
Marcus Hagerott | 7217e69 | 2016-11-10 10:18:28 -0800 | [diff] [blame] | 63 | <ImageView |
| 64 | android:id="@+id/account_type_icon" |
| 65 | android:layout_width="24dp" |
| 66 | android:layout_height="24dp" |
Marcus Hagerott | a856914 | 2016-11-28 17:10:12 -0800 | [diff] [blame] | 67 | android:layout_gravity="start|center_vertical" |
Marcus Hagerott | 7217e69 | 2016-11-10 10:18:28 -0800 | [diff] [blame] | 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" |
Marcus Hagerott | a856914 | 2016-11-28 17:10:12 -0800 | [diff] [blame] | 77 | android:gravity="start|center_vertical" |
Marcus Hagerott | 7217e69 | 2016-11-10 10:18:28 -0800 | [diff] [blame] | 78 | android:lines="1" |
| 79 | android:maxLines="1" |
Marcus Hagerott | a856914 | 2016-11-28 17:10:12 -0800 | [diff] [blame] | 80 | android:textAlignment="viewStart" |
Marcus Hagerott | 7217e69 | 2016-11-10 10:18:28 -0800 | [diff] [blame] | 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" |
Marcus Hagerott | 7217e69 | 2016-11-10 10:18:28 -0800 | [diff] [blame] | 88 | android:layout_gravity="center_vertical" |
Marcus Hagerott | e127579 | 2016-11-17 10:41:12 -0800 | [diff] [blame] | 89 | android:layout_marginEnd="5dp" |
Marcus Hagerott | 4b11232 | 2016-11-18 10:09:32 -0800 | [diff] [blame] | 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" |
Marcus Hagerott | 7217e69 | 2016-11-10 10:18:28 -0800 | [diff] [blame] | 96 | android:scaleType="center" |
| 97 | android:src="@drawable/ic_arrow_drop_down_black_24dp" |
| 98 | android:tint="?android:textColorSecondary" |
| 99 | android:visibility="gone"/> |
| 100 | </LinearLayout> |
Marcus Hagerott | 819214d | 2016-09-29 14:58:27 -0700 | [diff] [blame] | 101 | |
Marcus Hagerott | 2aa3198 | 2016-10-25 14:36:25 -0700 | [diff] [blame] | 102 | <FrameLayout |
| 103 | android:layout_width="match_parent" |
| 104 | android:layout_height="match_parent"> |
Marcus Hagerott | 819214d | 2016-09-29 14:58:27 -0700 | [diff] [blame] | 105 | |
Marcus Hagerott | 2aa3198 | 2016-10-25 14:36:25 -0700 | [diff] [blame] | 106 | <ListView |
| 107 | android:id="@+id/list" |
| 108 | android:layout_width="match_parent" |
Marcus Hagerott | b0914bc | 2016-11-02 11:08:43 -0700 | [diff] [blame] | 109 | android:layout_height="match_parent" |
Marcus Hagerott | 2525158 | 2016-11-03 14:00:07 -0700 | [diff] [blame] | 110 | android:clipToPadding="false" |
| 111 | android:paddingTop="8dp"/> |
Marcus Hagerott | 2aa3198 | 2016-10-25 14:36:25 -0700 | [diff] [blame] | 112 | |
| 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> |