diff options
author | KalimochoAz <calimochoazucarado@gmail.com> | 2012-09-01 14:51:29 +0200 |
---|---|---|
committer | KalimochoAz <calimochoazucarado@gmail.com> | 2012-09-01 14:53:04 +0200 |
commit | b573633abeb138af9dfea62266f19dd9250e59da (patch) | |
tree | d91fa97210c86ebc552931920c3f47bb03dfcefc /CrespoParts/res | |
parent | 0232757ebba61546c3bfffc4a1ea02080bd4475c (diff) | |
download | device_samsung_crespo-b573633abeb138af9dfea62266f19dd9250e59da.zip device_samsung_crespo-b573633abeb138af9dfea62266f19dd9250e59da.tar.gz device_samsung_crespo-b573633abeb138af9dfea62266f19dd9250e59da.tar.bz2 |
Add button led timeout option into settings
Change-Id: If9ca126b52fd06da7f6e55fc59b305189acac68a
Diffstat (limited to 'CrespoParts/res')
-rw-r--r-- | CrespoParts/res/layout/preference_dialog_bld_tuning.xml | 35 | ||||
-rw-r--r-- | CrespoParts/res/values/strings.xml | 3 | ||||
-rw-r--r-- | CrespoParts/res/xml/general_preferences.xml | 4 |
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> |