Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      3     android:id="@+id/list_item"
      4     android:layout_width="match_parent"
      5     android:layout_height="wrap_content"
      6     android:paddingLeft="16dp"
      7     android:paddingRight="16dp"
      8     android:paddingTop="6dp"
      9     android:paddingBottom="6dp"
     10     android:background="?android:attr/activatedBackgroundIndicator"
     11     android:orientation="vertical" >
     12 
     13     <LinearLayout
     14         android:layout_width="match_parent"
     15         android:layout_height="match_parent"
     16         android:duplicateParentState="true"
     17         >
     18 
     19         <ImageView
     20             android:id="@+id/icon"
     21             android:layout_width="20dp"
     22             android:layout_height="20dp"
     23             android:layout_gravity="top"
     24             android:layout_marginRight="8dp"
     25             android:duplicateParentState="true" />
     26 
     27         <TextView
     28             android:id="@+id/title"
     29             android:layout_width="0dp"
     30             android:layout_height="wrap_content"
     31             android:layout_gravity="top"
     32             android:layout_weight="1"
     33             android:textAppearance="?android:attr/textAppearanceSmall"
     34             android:textStyle="bold"
     35             android:duplicateParentState="true"
     36             android:fadingEdge="horizontal" />
     37 
     38         <TextView
     39             android:id="@+id/time"
     40             android:layout_width="wrap_content"
     41             android:layout_height="wrap_content"
     42             android:layout_gravity="top"
     43             android:textAppearance="?android:attr/textAppearanceSmall"
     44             android:duplicateParentState="true"
     45             android:singleLine="true"
     46             />
     47 
     48     </LinearLayout>
     49 
     50     <TextView
     51         android:id="@+id/text"
     52         android:layout_width="match_parent"
     53         android:layout_height="wrap_content"
     54         android:layout_gravity="top"
     55         android:layout_marginLeft="28dp"
     56         android:textAppearance="?android:attr/textAppearanceSmall"
     57         android:duplicateParentState="true"
     58         android:fadingEdge="horizontal" />
     59 
     60 
     61 </LinearLayout>
     62