mm_preference_child.xml 1.1 KB

123456789101112131415161718
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent"
  3. android:layout_height="?android:attr/listPreferredItemHeight" android:gravity="center_vertical">
  4. <RelativeLayout android:layout_width="wrap_content" android:layout_height="wrap_content"
  5. android:layout_marginLeft="20sp" android:layout_weight="1">
  6. <TextView android:id="@+android:id/title" android:layout_width="wrap_content" android:layout_height="wrap_content"
  7. android:singleLine="true" android:textAppearance="@style/MMPreferenceTextLarge" />
  8. <TextView android:id="@+android:id/summary" android:layout_width="wrap_content" android:layout_height="wrap_content"
  9. android:layout_below="@android:id/title" android:layout_alignLeft="@android:id/title" android:maxLines="2"
  10. android:textAppearance="@style/MMPreferenceTextSmall" />
  11. </RelativeLayout>
  12. <!-- Preference should place its actual preference widget here. -->
  13. <LinearLayout android:id="@+android:id/widget_frame" android:layout_width="wrap_content"
  14. android:layout_height="fill_parent" />
  15. </LinearLayout>