summaryrefslogtreecommitdiffstats
path: root/AdvancedDisplay/res
diff options
context:
space:
mode:
authorUtkarsh Gupta <utkarsh.eminem@gmail.com>2014-05-15 17:45:17 +0530
committerUtkarsh Gupta <utkarsh.eminem@gmail.com>2014-07-07 12:37:05 +0530
commit7e4a93901212bbe942a15f0db90073a9ee1cea3c (patch)
tree64894310a8ab9adf6f0d53c9e1d36780af85387a /AdvancedDisplay/res
parent48f28f8dc69fe3b586d726f5d77965257d1a8324 (diff)
downloaddevice_samsung_smdk4412-common-7e4a93901212bbe942a15f0db90073a9ee1cea3c.zip
device_samsung_smdk4412-common-7e4a93901212bbe942a15f0db90073a9ee1cea3c.tar.gz
device_samsung_smdk4412-common-7e4a93901212bbe942a15f0db90073a9ee1cea3c.tar.bz2
Cleanup
Change-Id: I5072f23827b7ec6471d0ba0cb873506b81ceaf85
Diffstat (limited to 'AdvancedDisplay/res')
-rw-r--r--AdvancedDisplay/res/layout/seek_bar_preference.xml61
-rw-r--r--AdvancedDisplay/res/values/custom_attrs.xml27
2 files changed, 88 insertions, 0 deletions
diff --git a/AdvancedDisplay/res/layout/seek_bar_preference.xml b/AdvancedDisplay/res/layout/seek_bar_preference.xml
new file mode 100644
index 0000000..38d9a1e
--- /dev/null
+++ b/AdvancedDisplay/res/layout/seek_bar_preference.xml
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@android:id/widget_frame"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:paddingLeft="8dp"
+ android:paddingTop="5dp"
+ android:paddingRight="10dp"
+ android:paddingBottom="5dp"
+ >
+
+ <TextView android:id="@android:id/title"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentTop="true"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ <TextView android:id="@android:id/summary"
+ android:layout_alignParentLeft="true"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@android:id/title"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:textColor="?android:attr/textColorSecondary" />
+
+ <RelativeLayout
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@android:id/summary" >
+
+ <TextView android:id="@+id/seekBarPrefUnitsRight"
+ android:layout_centerInParent="true"
+ android:layout_alignParentRight="true"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceSmall" />
+
+ <TextView android:id="@+id/seekBarPrefValue"
+ android:layout_centerInParent="true"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_toLeftOf="@id/seekBarPrefUnitsRight"
+ android:gravity="right"
+ android:textAppearance="?android:attr/textAppearanceSmall" />
+
+ <TextView android:id="@+id/seekBarPrefUnitsLeft"
+ android:layout_centerInParent="true"
+ android:layout_toLeftOf="@id/seekBarPrefValue"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceSmall" />
+
+ <LinearLayout android:id="@+id/seekBarPrefBarContainer"
+ android:layout_centerInParent="true"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:layout_toLeftOf="@id/seekBarPrefUnitsLeft" />
+ </RelativeLayout>
+</RelativeLayout>
diff --git a/AdvancedDisplay/res/values/custom_attrs.xml b/AdvancedDisplay/res/values/custom_attrs.xml
new file mode 100644
index 0000000..b856986
--- /dev/null
+++ b/AdvancedDisplay/res/values/custom_attrs.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2013, The ChameleonOS Open Source Project
+**
+** Licensed under the Apache License, Version 2.0 (the "License");
+** you may not use this file except in compliance with the License.
+** You may obtain a copy of the License at
+**
+** http://www.apache.org/licenses/LICENSE-2.0
+**
+** Unless required by applicable law or agreed to in writing, software
+** distributed under the License is distributed on an "AS IS" BASIS,
+** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+** See the License for the specific language governing permissions and
+** limitations under the License.
+*/
+-->
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+
+ <declare-styleable name="SeekBarPreference">
+ <attr name="min" format="integer" />
+ <attr name="unitsLeft" format="string" />
+ <attr name="unitsRight" format="string" />
+ </declare-styleable>
+
+</resources> \ No newline at end of file