| Left: | ||
| Right: |
| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <?xml version="1.0" encoding="utf-8"?> | |
|
diegocarloslima
2017/05/31 13:33:58
Since this is a general purpose preference layout
jens
2017/05/31 13:58:57
Acknowledged.
| |
| 2 <!-- Layout for a Preference in a PreferenceActivity. The | |
| 3 Preference is able to place a specific widget for its particular | |
| 4 type in the "widget_frame" layout. --> | |
| 5 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| 6 android:layout_width="match_parent" | |
| 7 android:layout_height="wrap_content" | |
| 8 android:minHeight="?android:attr/listPreferredItemHeight" | |
| 9 android:gravity="center_vertical" | |
| 10 android:paddingRight="?android:attr/scrollbarSize" | |
| 11 android:background="?android:attr/selectableItemBackground" > | |
| 12 | |
| 13 <ImageView | |
| 14 android:layout_width="wrap_content" | |
| 15 android:layout_height="wrap_content" | |
| 16 android:layout_gravity="center" | |
| 17 /> | |
| 18 | |
| 19 <RelativeLayout | |
| 20 android:layout_width="wrap_content" | |
| 21 android:layout_height="wrap_content" | |
| 22 android:layout_marginLeft="15dip" | |
| 23 android:layout_marginRight="6dip" | |
| 24 android:layout_marginTop="6dip" | |
| 25 android:layout_marginBottom="6dip" | |
| 26 android:layout_weight="1"> | |
| 27 | |
| 28 <TextView | |
| 29 android:id="@android:id/title" | |
| 30 android:layout_width="wrap_content" | |
| 31 android:layout_height="wrap_content" | |
| 32 android:maxLines="2" | |
| 33 android:textAppearance="?android:attr/textAppearanceListItem" | |
| 34 android:fadingEdge="horizontal" /> | |
| 35 | |
| 36 <TextView | |
| 37 android:id="@android:id/summary" | |
| 38 android:layout_width="wrap_content" | |
| 39 android:layout_height="wrap_content" | |
| 40 android:layout_below="@android:id/title" | |
| 41 android:layout_alignLeft="@android:id/title" | |
| 42 android:textAppearance="?android:attr/textAppearanceSmall" | |
| 43 android:textColor="?android:attr/textColorSecondary" | |
| 44 android:maxLines="4" /> | |
| 45 | |
| 46 </RelativeLayout> | |
| 47 | |
| 48 <!-- Preference should place its actual preference widget here. --> | |
| 49 <LinearLayout | |
| 50 android:id="@android:id/widget_frame" | |
| 51 android:layout_width="wrap_content" | |
| 52 android:layout_height="match_parent" | |
| 53 android:gravity="center_vertical" | |
| 54 android:orientation="vertical" /> | |
| 55 | |
| 56 </LinearLayout> | |
| OLD | NEW |