summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorRoman Birg <roman@cyngn.com>2015-01-05 13:32:20 -0800
committerDanesh M <daneshm90@gmail.com>2015-12-15 18:31:05 -0800
commitc5cd017e7e168c5b69072dacda74aa2f298c7ab0 (patch)
treec061f473d41602c0ce7058c7507d62d89ee796e6 /res/layout
parente1f1ba9036f23f439dbeab6b48a16bcf97db3b93 (diff)
downloadpackages_apps_Settings-c5cd017e7e168c5b69072dacda74aa2f298c7ab0.zip
packages_apps_Settings-c5cd017e7e168c5b69072dacda74aa2f298c7ab0.tar.gz
packages_apps_Settings-c5cd017e7e168c5b69072dacda74aa2f298c7ab0.tar.bz2
Settings: add switches for dashboard items
Change-Id: Ibff81510270745807a4b133457d60d47dd629df6 Signed-off-by: Roman Birg <roman@cyngn.com>
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/dashboard_tile.xml17
1 files changed, 15 insertions, 2 deletions
diff --git a/res/layout/dashboard_tile.xml b/res/layout/dashboard_tile.xml
index aa1d00e..0fe8fc0 100644
--- a/res/layout/dashboard_tile.xml
+++ b/res/layout/dashboard_tile.xml
@@ -45,13 +45,24 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content">
+ <Switch
+ android:id="@+id/dashboard_switch"
+ android:visibility="gone"
+ android:layout_alignParentRight="true"
+ android:paddingRight="@dimen/action_bar_switch_padding"
+ android:layout_height="wrap_content"
+ android:layout_width="wrap_content"/>
+
<TextView android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
android:textAppearance="@style/TextAppearance.TileTitle"
android:ellipsize="marquee"
- android:fadingEdge="horizontal" />
+ android:layout_alignParentStart="true"
+ android:layout_toStartOf="@+id/dashboard_switch"
+ android:fadingEdge="horizontal"
+ android:layout_alignParentEnd="false"/>
<TextView android:id="@+id/status"
android:layout_width="wrap_content"
@@ -59,6 +70,8 @@
android:layout_below="@id/title"
android:layout_alignStart="@android:id/title"
android:textAppearance="@style/TextAppearance.Small"
+ android:layout_alignParentStart="true"
+ android:layout_toStartOf="@+id/dashboard_switch"
android:textColor="?android:attr/textColorSecondary" />
</RelativeLayout>
@@ -72,4 +85,4 @@
</LinearLayout>
-</LinearLayout> \ No newline at end of file
+</LinearLayout>