mm_preference.xml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="fill_parent"
  4. android:layout_height="wrap_content"
  5. android:background="@drawable/preference_item"
  6. android:gravity="center_vertical" >
  7. <LinearLayout
  8. android:id="@+id/content"
  9. android:layout_width="wrap_content"
  10. android:layout_height="wrap_content"
  11. android:layout_marginRight="4sp"
  12. android:layout_weight="1"
  13. android:gravity="left|center_vertical"
  14. android:minHeight="@dimen/PreferenceItemHeight" >
  15. <TextView
  16. android:id="@+android:id/title"
  17. style="@style/MMFontPreferenceLarge"
  18. android:layout_width="fill_parent"
  19. android:layout_height="wrap_content"
  20. android:layout_marginLeft="6dp"
  21. android:layout_weight="1"
  22. android:singleLine="true"/>
  23. <TextView
  24. android:id="@+android:id/summary"
  25. style="@style/MMFontPreferenceSummary"
  26. android:singleLine="true" />
  27. </LinearLayout>
  28. <!-- Preference should place its actual preference widget here. -->
  29. <LinearLayout
  30. android:id="@+android:id/widget_frame"
  31. android:layout_width="wrap_content"
  32. android:layout_height="fill_parent"
  33. android:gravity="right|center_vertical"
  34. android:orientation="vertical" />
  35. </LinearLayout>