Index: adblockplussbrowser/res/layout/multiline_preference_screen.xml |
=================================================================== |
new file mode 100644 |
--- /dev/null |
+++ b/adblockplussbrowser/res/layout/multiline_preference_screen.xml |
@@ -0,0 +1,56 @@ |
+<?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.
|
+<!-- Layout for a Preference in a PreferenceActivity. The |
+ Preference is able to place a specific widget for its particular |
+ type in the "widget_frame" layout. --> |
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
+ android:layout_width="match_parent" |
+ android:layout_height="wrap_content" |
+ android:minHeight="?android:attr/listPreferredItemHeight" |
+ android:gravity="center_vertical" |
+ android:paddingRight="?android:attr/scrollbarSize" |
+ android:background="?android:attr/selectableItemBackground" > |
+ |
+ <ImageView |
+ android:layout_width="wrap_content" |
+ android:layout_height="wrap_content" |
+ android:layout_gravity="center" |
+ /> |
+ |
+ <RelativeLayout |
+ android:layout_width="wrap_content" |
+ android:layout_height="wrap_content" |
+ android:layout_marginLeft="15dip" |
+ android:layout_marginRight="6dip" |
+ android:layout_marginTop="6dip" |
+ android:layout_marginBottom="6dip" |
+ android:layout_weight="1"> |
+ |
+ <TextView |
+ android:id="@android:id/title" |
+ android:layout_width="wrap_content" |
+ android:layout_height="wrap_content" |
+ android:maxLines="2" |
+ android:textAppearance="?android:attr/textAppearanceListItem" |
+ android:fadingEdge="horizontal" /> |
+ |
+ <TextView |
+ android:id="@android:id/summary" |
+ android:layout_width="wrap_content" |
+ android:layout_height="wrap_content" |
+ android:layout_below="@android:id/title" |
+ android:layout_alignLeft="@android:id/title" |
+ android:textAppearance="?android:attr/textAppearanceSmall" |
+ android:textColor="?android:attr/textColorSecondary" |
+ android:maxLines="4" /> |
+ |
+ </RelativeLayout> |
+ |
+ <!-- Preference should place its actual preference widget here. --> |
+ <LinearLayout |
+ android:id="@android:id/widget_frame" |
+ android:layout_width="wrap_content" |
+ android:layout_height="match_parent" |
+ android:gravity="center_vertical" |
+ android:orientation="vertical" /> |
+ |
+</LinearLayout> |