diff options
author | Pawit Pornkitprasan <p.pawit@gmail.com> | 2011-10-29 20:16:27 +0700 |
---|---|---|
committer | Pawit Pornkitprasan <p.pawit@gmail.com> | 2011-10-31 12:50:55 +0700 |
commit | a80465577d6c6b32946a47a008a2b2640f26391b (patch) | |
tree | 4349885483e55c06a76115c87d0a515020898350 /AriesParts/res | |
parent | 6e885a485a8faf158fcc1f1c8f9f6fb8ea9eda12 (diff) | |
download | device_samsung_aries-common-a80465577d6c6b32946a47a008a2b2640f26391b.zip device_samsung_aries-common-a80465577d6c6b32946a47a008a2b2640f26391b.tar.gz device_samsung_aries-common-a80465577d6c6b32946a47a008a2b2640f26391b.tar.bz2 |
Device-specific settings for aries devices (1/7)
Requires I641cba7cc7b634130ec55aec1dd6ca36659ed3c9 and updated kernels
Patch set 2: Fix wrong translatable="false"
Patch set 3: Change app_name and add value display to color calibration
Patch set 4: Adjust backlight timeout description and moved "Never" to
the end of the list
Change-Id: Ie259e6da5a9dee2534790ca23a3b49f78b5ff2ce
Diffstat (limited to 'AriesParts/res')
-rw-r--r-- | AriesParts/res/drawable/color_tuning_preview.xml | 9 | ||||
-rw-r--r-- | AriesParts/res/layout/preference_dialog_color_tuning.xml | 92 | ||||
-rw-r--r-- | AriesParts/res/values/arrays.xml | 21 | ||||
-rw-r--r-- | AriesParts/res/values/strings.xml | 15 | ||||
-rw-r--r-- | AriesParts/res/xml/main.xml | 25 |
5 files changed, 162 insertions, 0 deletions
diff --git a/AriesParts/res/drawable/color_tuning_preview.xml b/AriesParts/res/drawable/color_tuning_preview.xml new file mode 100644 index 0000000..2d83c10 --- /dev/null +++ b/AriesParts/res/drawable/color_tuning_preview.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<shape + xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle"> + <gradient + android:angle="0" + android:startColor="#000000" + android:endColor="#FFFFFF" /> +</shape>
\ No newline at end of file diff --git a/AriesParts/res/layout/preference_dialog_color_tuning.xml b/AriesParts/res/layout/preference_dialog_color_tuning.xml new file mode 100644 index 0000000..f228541 --- /dev/null +++ b/AriesParts/res/layout/preference_dialog_color_tuning.xml @@ -0,0 +1,92 @@ +<?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/color_red_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/color_red_title" + android:paddingTop="10dip" + android:paddingLeft="20dip" + android:paddingRight="20dip" /> + <TextView android:id="@+id/color_red_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/color_red_seekbar" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/color_red_text" + android:paddingTop="2dip" + android:paddingLeft="20dip" + android:paddingRight="20dip" /> + + <TextView android:id="@+id/color_green_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/color_red_seekbar" + android:text="@string/color_green_title" + android:paddingTop="10dip" + android:paddingLeft="20dip" + android:paddingRight="20dip" /> + <TextView android:id="@+id/color_green_value" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/color_red_seekbar" + android:layout_alignParentRight="true" + android:paddingTop="10dip" + android:paddingLeft="20dip" + android:paddingRight="20dip" /> + <SeekBar android:id="@+id/color_green_seekbar" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/color_green_text" + android:paddingTop="2dip" + android:paddingLeft="20dip" + android:paddingRight="20dip" /> + + <TextView android:id="@+id/color_blue_text" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/color_green_seekbar" + android:text="@string/color_blue_title" + android:paddingTop="10dip" + android:paddingLeft="20dip" + android:paddingRight="20dip" /> + <TextView android:id="@+id/color_blue_value" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/color_green_seekbar" + android:layout_alignParentRight="true" + android:paddingTop="10dip" + android:paddingLeft="20dip" + android:paddingRight="20dip" /> + <SeekBar android:id="@+id/color_blue_seekbar" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/color_blue_text" + android:paddingTop="2dip" + android:paddingLeft="20dip" + android:paddingRight="20dip" /> + + <ImageView android:src="@drawable/color_tuning_preview" + android:layout_width="match_parent" + android:layout_height="40dip" + android:layout_below="@id/color_blue_seekbar" + android:paddingTop="20dip" + android:paddingLeft="20dip" + android:paddingRight="20dip" /> + + </RelativeLayout> +</ScrollView>
\ No newline at end of file diff --git a/AriesParts/res/values/arrays.xml b/AriesParts/res/values/arrays.xml new file mode 100644 index 0000000..9053a71 --- /dev/null +++ b/AriesParts/res/values/arrays.xml @@ -0,0 +1,21 @@ +<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <string-array name="backlight_timeout_entries"> + <item>Default (1.6 seconds)</item> + <item>2 seconds</item> + <item>5 seconds</item> + <item>10 seconds</item> + <item>15 seconds</item> + <item>30 seconds</item> + <item>Never</item> + </string-array> + + <string-array name="backlight_timeout_entries_values" translatable="false"> + <item>1600</item> + <item>2000</item> + <item>5000</item> + <item>10000</item> + <item>15000</item> + <item>30000</item> + <item>-1</item> + </string-array> +</resources> diff --git a/AriesParts/res/values/strings.xml b/AriesParts/res/values/strings.xml new file mode 100644 index 0000000..d21d1a9 --- /dev/null +++ b/AriesParts/res/values/strings.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <string name="app_name">Galaxy S Settings</string> + + <string name="category_screen_title">Screen</string> + <string name="color_tuning_title_head">Color Tuning</string> + <string name="color_tuning_summary_head">Calibrate screen color</string> + <string name="color_red_title">Red</string> + <string name="color_green_title">Green</string> + <string name="color_blue_title">Blue</string> + + <string name="category_touchkey_title">Touch Keys</string> + <string name="backlight_timeout_title_head">Backlight Timeout</string> + <string name="backlight_timeout_summary_head">Adjust the delay before the touch key backlight automatically turns off</string> +</resources> diff --git a/AriesParts/res/xml/main.xml b/AriesParts/res/xml/main.xml new file mode 100644 index 0000000..68938f4 --- /dev/null +++ b/AriesParts/res/xml/main.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> + + <PreferenceCategory + android:title="@string/category_screen_title"> + <!-- Color tuning --> + <com.cyanogenmod.AriesParts.ColorTuningPreference + android:key="color_tuning" + android:title="@string/color_tuning_title_head" + android:summary="@string/color_tuning_summary_head" /> + </PreferenceCategory> + + <PreferenceCategory + android:title="@string/category_touchkey_title"> + <!-- Touch key backlight timeout --> + <ListPreference + android:key="backlight_timeout" + android:title="@string/backlight_timeout_title_head" + android:summary="@string/backlight_timeout_summary_head" + android:entries="@array/backlight_timeout_entries" + android:entryValues="@array/backlight_timeout_entries_values" + android:defaultValue="1600" /> + </PreferenceCategory> + +</PreferenceScreen> |