Advertisement
Guest User

Android TwoLineListItem with CheckedTextView

a guest
Feb 3rd, 2013
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.08 KB | None | 0 0
  1. <TwoLineListItem xmlns:android="http://schemas.android.com/apk/res/android"
  2.     android:paddingTop="2dip"
  3.     android:paddingBottom="2dip"
  4.    android:layout_width="match_parent"
  5.    android:layout_height="wrap_content"
  6.    android:minHeight="?android:attr/listPreferredItemHeight"
  7.    android:mode="twoLine">
  8.     <CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android"
  9.         android:id="@android:id/text1"
  10.         android:layout_width="match_parent"
  11.         android:layout_height="?android:attr/listPreferredItemHeight"
  12.         android:textAppearance="?android:attr/textAppearanceLarge"
  13.         android:gravity="center_vertical"
  14.         android:checkMark="?android:attr/textCheckMark"
  15.         android:paddingLeft="6dip"
  16.         android:paddingRight="6dip"
  17.     />
  18.     <TextView android:id="@android:id/text2"
  19.         android:layout_width="match_parent"
  20.         android:layout_height="wrap_content"
  21.         android:layout_below="@android:id/text1"
  22.        android:layout_alignLeft="@android:id/text1"
  23.         android:textAppearance="?android:attr/textAppearanceSmall"
  24.         android:paddingLeft="6dip"
  25.     />
  26. </TwoLineListItem>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement