• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2013 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
17<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18    android:layout_width="match_parent"
19    android:layout_height="wrap_content"
20    android:paddingStart="@dimen/list_item_padding"
21    android:paddingEnd="@dimen/bottom_bar_padding"
22    android:orientation="horizontal"
23    android:baselineAligned="false"
24    android:gravity="center_vertical"
25    android:minHeight="?android:attr/listPreferredItemHeightSmall">
26
27    <FrameLayout
28        android:layout_width="@dimen/icon_size"
29        android:layout_height="@dimen/icon_size"
30        android:layout_marginEnd="16dp">
31
32        <ImageView
33            android:id="@android:id/icon"
34            android:layout_width="@dimen/root_icon_size"
35            android:layout_height="match_parent"
36            android:scaleType="centerInside"
37            android:contentDescription="@null" />
38
39    </FrameLayout>
40
41    <EditText
42        android:id="@android:id/title"
43        android:layout_width="0dp"
44        android:layout_height="wrap_content"
45        android:layout_weight="1"
46        android:singleLine="true"
47        android:selectAllOnFocus="true" />
48
49    <FrameLayout
50        android:layout_width="wrap_content"
51        android:layout_height="match_parent">
52
53        <com.google.android.material.button.MaterialButton
54            android:id="@android:id/button1"
55            style="@style/Widget.MaterialComponents.Button.UnelevatedButton"
56            android:layout_width="wrap_content"
57            android:layout_height="wrap_content"
58            android:layout_marginStart="4dp"
59            android:layout_marginEnd="4dp"
60            android:text="@string/menu_save"/>
61
62        <ProgressBar
63            android:id="@android:id/progress"
64            android:layout_width="wrap_content"
65            android:layout_height="wrap_content"
66            android:layout_gravity="center"
67            android:visibility="gone"
68            android:indeterminate="true"
69            android:padding="8dp"
70            style="?android:attr/progressBarStyle" />
71
72    </FrameLayout>
73
74</LinearLayout>
75