Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2008 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 <!-- RelativeLayouts have an issue enforcing minimum heights, so just
     18      work around this for now with LinearLayouts. -->
     19 <LinearLayout
     20     xmlns:android="http://schemas.android.com/apk/res/android"
     21     android:layout_width="wrap_content"
     22     android:layout_height="wrap_content"
     23     android:layout_gravity="center"
     24     android:minWidth="92dp"
     25     android:minHeight="92dp"
     26     android:gravity="center"
     27     android:orientation="vertical"
     28     android:paddingEnd="0dip"
     29     android:paddingStart="0dip">
     30 
     31     <ImageView
     32         android:id="@*android:id/icon"
     33         android:layout_width="24dp"
     34         android:layout_height="24dp"
     35         android:layout_gravity="center"
     36         android:scaleType="center"/>
     37 
     38     <TextView
     39         android:id="@*android:id/message"
     40         android:layout_width="wrap_content"
     41         android:layout_height="wrap_content"
     42         android:layout_gravity="top|center_horizontal"
     43         android:paddingTop="10dp"
     44         android:gravity="center"
     45         android:textSize="12sp"
     46         android:textAppearance="?android:attr/textAppearanceSmall"
     47         />
     48 
     49     <TextView
     50         android:id="@*android:id/status"
     51         android:layout_width="wrap_content"
     52         android:layout_height="wrap_content"
     53         android:layout_gravity="top|center_horizontal"
     54         android:gravity="center"
     55         android:textColor="?android:attr/textColorTertiary"
     56         android:textAppearance="?android:attr/textAppearanceSmall"
     57         />
     58 </LinearLayout>
     59