Home | History | Annotate | Download | only in layout
      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:minHeight="?android:attr/listPreferredItemHeightSmall">
     25 
     26     <FrameLayout
     27         android:layout_width="@dimen/icon_size"
     28         android:layout_height="@dimen/icon_size"
     29         android:layout_marginEnd="16dp">
     30 
     31         <ImageView
     32             android:id="@android:id/icon"
     33             android:layout_width="@dimen/root_icon_size"
     34             android:layout_height="match_parent"
     35             android:scaleType="centerInside"
     36             android:contentDescription="@null" />
     37 
     38     </FrameLayout>
     39 
     40     <EditText
     41         android:id="@android:id/title"
     42         android:layout_width="0dp"
     43         android:layout_height="wrap_content"
     44         android:layout_weight="1"
     45         android:singleLine="true"
     46         android:selectAllOnFocus="true" />
     47 
     48     <FrameLayout
     49         android:layout_width="wrap_content"
     50         android:layout_height="match_parent">
     51 
     52         <Button
     53             android:id="@android:id/button1"
     54             android:layout_width="wrap_content"
     55             android:layout_height="match_parent"
     56             android:text="@string/menu_save"
     57             style="?android:attr/buttonBarPositiveButtonStyle" />
     58 
     59         <ProgressBar
     60             android:id="@android:id/progress"
     61             android:layout_width="wrap_content"
     62             android:layout_height="wrap_content"
     63             android:layout_gravity="center"
     64             android:visibility="gone"
     65             android:indeterminate="true"
     66             android:padding="8dp"
     67             style="?android:attr/progressBarStyle" />
     68 
     69     </FrameLayout>
     70 
     71 </LinearLayout>
     72