aboutsummaryrefslogtreecommitdiffstats
path: root/res/layout/preference_header_item.xml
diff options
context:
space:
mode:
Diffstat (limited to 'res/layout/preference_header_item.xml')
-rw-r--r--res/layout/preference_header_item.xml36
1 files changed, 20 insertions, 16 deletions
diff --git a/res/layout/preference_header_item.xml b/res/layout/preference_header_item.xml
index fb57a79..ae861ab 100644
--- a/res/layout/preference_header_item.xml
+++ b/res/layout/preference_header_item.xml
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
+
<!-- Copyright (C) 2013 The CyanogenMod Project (DvTonder)
Licensed under the Apache License, Version 2.0 (the "License");
@@ -18,16 +19,19 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:minHeight="48dp"
android:background="?android:attr/activatedBackgroundIndicator"
android:gravity="center_vertical"
+ android:minHeight="48dp"
android:paddingEnd="?android:attr/scrollbarSize">
<LinearLayout
android:layout_width="wrap_content"
- android:layout_marginStart="6dip"
+ android:layout_height="wrap_content"
+ android:layout_marginRight="6dip"
android:layout_marginEnd="6dip"
- android:layout_height="wrap_content">
+ android:layout_marginLeft="6dip"
+ android:layout_marginStart="6dip">
+
<ImageView
android:id="@+id/icon"
android:layout_width="wrap_content"
@@ -36,31 +40,31 @@
</LinearLayout>
<RelativeLayout
- android:layout_width="wrap_content"
+ android:layout_width="0dp"
android:layout_height="wrap_content"
- android:layout_marginStart="2dip"
+ android:layout_marginBottom="6dip"
android:layout_marginEnd="6dip"
+ android:layout_marginStart="2dip"
android:layout_marginTop="6dip"
- android:layout_marginBottom="6dip"
android:layout_weight="1">
- <TextView android:id="@+id/title"
+ <TextView
+ android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:singleLine="true"
- android:textAppearance="?android:attr/textAppearanceMedium"
android:ellipsize="marquee"
- android:fadingEdge="horizontal" />
+ android:fadingEdge="horizontal"
+ android:singleLine="true"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
- <TextView android:id="@+id/summary"
+ <TextView
+ android:id="@+id/summary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_below="@id/title"
android:layout_alignStart="@id/title"
- android:textAppearance="?android:attr/textAppearanceSmall"
+ android:layout_below="@id/title"
android:ellipsize="end"
- android:maxLines="2" />
-
+ android:maxLines="2"
+ android:textAppearance="?android:attr/textAppearanceSmall" />
</RelativeLayout>
-
</LinearLayout>