Home | History | Annotate | Download | only in layout-finger
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3 /*
      4  * Copyright 2009, The Android Open Source Project
      5  *
      6  * Licensed under the Apache License, Version 2.0 (the "License");
      7  * you may not use this file except in compliance with the License.
      8  * You may obtain a copy of the License at
      9  *
     10  *      http://www.apache.org/licenses/LICENSE-2.0
     11  *
     12  * Unless required by applicable law or agreed to in writing, software
     13  * distributed under the License is distributed on an "AS IS" BASIS,
     14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     15  * See the License for the specific language governing permissions and
     16  * limitations under the License.
     17  */
     18 -->
     19 
     20 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     21     android:layout_width="match_parent"
     22     android:layout_height="wrap_content"
     23     android:minHeight="?android:attr/listPreferredItemHeight"
     24     android:orientation="horizontal"
     25     android:paddingLeft="9dip"
     26     android:paddingRight="5dip"
     27     android:gravity="center_vertical"
     28 >
     29 
     30     <LinearLayout
     31         android:layout_width="0dip"
     32         android:layout_height="wrap_content"
     33         android:layout_weight="1"
     34         android:layout_marginRight="5dip"
     35         android:paddingTop="5dip"
     36         android:paddingBottom="7dip"
     37         android:orientation="vertical"
     38         android:gravity="center_vertical"
     39     >
     40 
     41         <TextView android:id="@android:id/text1"
     42             android:layout_width="wrap_content"
     43             android:layout_height="wrap_content"
     44             android:textAppearance="?android:attr/textAppearanceLarge"
     45         />
     46 
     47 
     48         <LinearLayout android:id="@+id/line2"
     49             android:layout_width="wrap_content"
     50             android:layout_height="wrap_content"
     51             android:orientation="horizontal"
     52         >
     53             <TextView android:id="@+id/label"
     54                 android:layout_width="wrap_content"
     55                 android:layout_height="wrap_content"
     56                 android:layout_marginRight="5dip"
     57                 android:textAppearance="?android:attr/textAppearanceSmall"
     58                 android:textStyle="bold"
     59             />
     60         
     61             <TextView android:id="@+id/number"
     62                 android:layout_width="wrap_content"
     63                 android:layout_height="wrap_content"
     64                 android:textAppearance="?android:attr/textAppearanceSmall"
     65             />
     66         </LinearLayout>
     67 
     68     </LinearLayout>
     69 
     70     <ImageView android:id="@+id/icon"
     71         android:layout_width="32dip"
     72         android:layout_height="32dip"
     73         android:layout_marginLeft="5dip"
     74         android:gravity="center"
     75         android:scaleType="centerInside"
     76     />
     77 
     78 </LinearLayout>
     79