1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2024 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 xmlns:app="http://schemas.android.com/apk/res-auto" 19 android:layout_width="match_parent" 20 android:layout_height="wrap_content" 21 android:paddingTop="@dimen/picker_saver_container_padding_top" 22 android:paddingBottom="@dimen/picker_saver_container_padding_bottom"> 23 24 <LinearLayout 25 android:layout_width="match_parent" 26 android:layout_height="wrap_content" 27 android:paddingTop="@dimen/picker_saver_padding_top" 28 android:paddingBottom="@dimen/picker_saver_padding_bottom" 29 android:paddingEnd="@dimen/bottom_bar_padding" 30 android:orientation="horizontal" 31 android:baselineAligned="false" 32 android:gravity="center_vertical|end" 33 android:paddingStart="@dimen/list_item_padding"> 34 35 <com.google.android.material.textfield.TextInputLayout 36 android:id="@+id/title_wrapper" 37 style="?attr/textInputFilledStyle" 38 android:layout_width="0dp" 39 android:layout_height="wrap_content" 40 android:layout_weight="1" 41 android:layout_marginEnd="@dimen/picker_saver_button_gap" 42 android:hint="@string/file_name_hint"> 43 <com.google.android.material.textfield.TextInputEditText 44 android:id="@android:id/title" 45 android:layout_width="match_parent" 46 android:layout_height="wrap_content" 47 android:singleLine="true" 48 android:selectAllOnFocus="true" /> 49 </com.google.android.material.textfield.TextInputLayout> 50 51 <include layout="@layout/fragment_save_cancel_button" /> 52 53 <com.google.android.material.button.MaterialButton 54 android:id="@android:id/button1" 55 style="@style/MaterialButton" 56 app:cornerRadius="@dimen/button_corner_radius" 57 android:layout_width="wrap_content" 58 android:layout_height="wrap_content" 59 android:layout_marginStart="@dimen/picker_saver_button_gap" 60 android:layout_marginEnd="@dimen/picker_saver_button_gap" 61 android:text="@string/menu_save"/> 62 63 <com.google.android.material.progressindicator.CircularProgressIndicator 64 android:id="@android:id/progress" 65 android:layout_width="wrap_content" 66 android:layout_height="wrap_content" 67 android:layout_gravity="center" 68 android:visibility="gone" 69 android:indeterminate="true" 70 android:padding="8dp" 71 app:trackColor="?attr/colorSecondaryContainer" /> 72 73 </LinearLayout> 74 75</LinearLayout> 76