Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 30th, 2012  |  syntax: XML  |  size: 1.57 KB  |  hits: 27  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <TwoLineListItem xmlns:android="http://schemas.android.com/apk/res/android"
  2.    android:layout_width="match_parent"
  3.    android:layout_height="wrap_content"
  4.    android:background="?android:attr/activatedBackgroundIndicator"
  5.    android:minHeight="?android:attr/listPreferredItemHeight"
  6.    android:orientation="horizontal">
  7.                        
  8.                 <LinearLayout android:orientation="vertical" android:layout_alignParentRight="true"
  9.                     android:layout_width="60dp" android:layout_height="match_parent">
  10.                     <ImageView
  11.                             android:id="@+id/favourite_status"
  12.                             android:layout_width="wrap_content"
  13.                             android:layout_height="match_parent"
  14.                             android:src="@drawable/is_not_favourite"
  15.                             android:contentDescription="@string/list_favorites_status"
  16.                             android:background="@null"
  17.                             android:layout_margin="9dp"/>
  18.                 </LinearLayout>
  19.                
  20.                 <LinearLayout android:orientation="vertical"
  21.                     android:layout_width="fill_parent" android:layout_height="match_parent">
  22.                     <TextView android:id="@android:id/text1"
  23.                                 android:layout_width="match_parent"
  24.                                 android:layout_height="wrap_content"
  25.                         android:layout_marginLeft="?android:attr/listPreferredItemPaddingLeft"
  26.                         android:layout_marginTop="8dip"
  27.                                 android:textAppearance="?android:attr/textAppearanceListItem"
  28.                                 />
  29.                     <TextView android:id="@android:id/text2"
  30.                                 android:layout_width="match_parent"
  31.                                 android:layout_height="wrap_content"
  32.                                 android:textAppearance="?android:attr/textAppearanceMedium"
  33.                         />
  34.                 </LinearLayout>
  35.  
  36.                        
  37.                        
  38. </TwoLineListItem>