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:orientation="horizontal" 22 android:baselineAligned="false" 23 android:gravity="center_vertical" 24 android:fitsSystemWindows="true" 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 <Button 54 android:id="@android:id/button1" 55 android:layout_width="wrap_content" 56 android:layout_height="match_parent" 57 android:text="@string/menu_save" 58 style="?android:attr/buttonBarPositiveButtonStyle" /> 59 60 <ProgressBar 61 android:id="@android:id/progress" 62 android:layout_width="wrap_content" 63 android:layout_height="wrap_content" 64 android:layout_gravity="center" 65 android:visibility="gone" 66 android:indeterminate="true" 67 android:padding="8dp" 68 style="?android:attr/progressBarStyle" /> 69 70 </FrameLayout> 71 72</LinearLayout> 73