summaryrefslogtreecommitdiffstats
path: root/CrespoParts/res
diff options
context:
space:
mode:
Diffstat (limited to 'CrespoParts/res')
-rw-r--r--CrespoParts/res/layout/preference_dialog_bld_tuning.xml35
-rw-r--r--CrespoParts/res/values/strings.xml3
-rw-r--r--CrespoParts/res/xml/general_preferences.xml4
3 files changed, 42 insertions, 0 deletions
diff --git a/CrespoParts/res/layout/preference_dialog_bld_tuning.xml b/CrespoParts/res/layout/preference_dialog_bld_tuning.xml
new file mode 100644
index 0000000..5c83b6e
--- /dev/null
+++ b/CrespoParts/res/layout/preference_dialog_bld_tuning.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <RelativeLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center_horizontal"
+ android:paddingBottom="20dip">
+
+ <TextView android:id="@+id/bld_text"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="@string/bld_title"
+ android:paddingTop="10dip"
+ android:paddingLeft="20dip"
+ android:paddingRight="20dip" />
+ <TextView android:id="@+id/bld_value"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentRight="true"
+ android:paddingTop="10dip"
+ android:paddingLeft="20dip"
+ android:paddingRight="20dip" />
+ <SeekBar android:id="@+id/bld_seekbar"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/bld_text"
+ android:paddingTop="2dip"
+ android:paddingLeft="20dip"
+ android:paddingRight="20dip" />
+ </RelativeLayout>
+</ScrollView>
diff --git a/CrespoParts/res/values/strings.xml b/CrespoParts/res/values/strings.xml
index 661fb8d..d3531df 100644
--- a/CrespoParts/res/values/strings.xml
+++ b/CrespoParts/res/values/strings.xml
@@ -26,6 +26,9 @@
<string name="color_default_title">Default</string>
<string name="color_CM_title">CM Sett.</string>
<string name="color_dark_title">Dark Sett.</string>
+ <string name="bld_title">BLD</string>
+ <string name="bld_tuning_title_head">BLD Tuning</string>
+ <string name="bld_tuning_summary_head">Set the time to turn off keys light ( 0 means no BLD )</string>
<string name="preset1_default_title">Default.</string>
<string name="preset2_default_title">Natural</string>
diff --git a/CrespoParts/res/xml/general_preferences.xml b/CrespoParts/res/xml/general_preferences.xml
index 423f97b..7788a88 100644
--- a/CrespoParts/res/xml/general_preferences.xml
+++ b/CrespoParts/res/xml/general_preferences.xml
@@ -20,6 +20,10 @@
<CheckBoxPreference android:key="touchkey_notification"
android:title="@string/touchkey_notification_title_head"
android:summary="@string/touchkey_notification_summary_head" />
+ <com.cyanogenmod.settings.device.bldTuningPreference
+ android:key="bld_tuning"
+ android:title="@string/bld_tuning_title_head"
+ android:summary="@string/bld_tuning_summary_head" />
</PreferenceCategory>
</PreferenceScreen>