diff options
Diffstat (limited to 'GNexusParts/res')
-rw-r--r-- | GNexusParts/res/layout/preference_dialog_vibrator_tuning.xml | 50 | ||||
-rw-r--r-- | GNexusParts/res/values/strings.xml | 7 | ||||
-rw-r--r-- | GNexusParts/res/xml/general_preferences.xml | 10 |
3 files changed, 65 insertions, 2 deletions
diff --git a/GNexusParts/res/layout/preference_dialog_vibrator_tuning.xml b/GNexusParts/res/layout/preference_dialog_vibrator_tuning.xml new file mode 100644 index 0000000..2b6e077 --- /dev/null +++ b/GNexusParts/res/layout/preference_dialog_vibrator_tuning.xml @@ -0,0 +1,50 @@ +<?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/vibrator_text" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/vibrator_title" + android:paddingTop="10dip" + android:paddingLeft="20dip" + android:paddingRight="20dip" /> + <TextView android:id="@+id/vibrator_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/vibrator_seekbar" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/vibrator_text" + android:paddingTop="2dip" + android:paddingLeft="20dip" + android:paddingRight="20dip" /> + + <LinearLayout + android:id="@+id/linearLayout1" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@+id/vibrator_seekbar" > + + <Button + android:id="@+id/btnvibratorDefault" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/vibrator_default_title" /> + + </LinearLayout> + + </RelativeLayout> +</ScrollView> diff --git a/GNexusParts/res/values/strings.xml b/GNexusParts/res/values/strings.xml index 37264c0..5bc261d 100644 --- a/GNexusParts/res/values/strings.xml +++ b/GNexusParts/res/values/strings.xml @@ -25,6 +25,13 @@ <string name="color_dark_title">Dark Sett.</string> <string name="gamma_dss_title">DSS Gamma Set.</string> + <string name="category_hardware_title">CPU</string> + <string name="vibrator_tuning_title_head">Vibrator feedback tuning</string> + <string name="vibrator_tuning_summary_head">Controls the default power of vibrator feedback</string> + + <string name="vibrator_title">Vibration %</string> + <string name="vibrator_default_title">Default</string> + <string name="preset1_default_title">Default.</string> <string name="preset2_default_title">Natural</string> <string name="preset3_default_title">Dark Blue</string> diff --git a/GNexusParts/res/xml/general_preferences.xml b/GNexusParts/res/xml/general_preferences.xml index fc07c42..73c1495 100644 --- a/GNexusParts/res/xml/general_preferences.xml +++ b/GNexusParts/res/xml/general_preferences.xml @@ -2,8 +2,14 @@ <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> <!-- General settings --> - <PreferenceCategory android:key="category_cpu" - android:title="@string/category_cpu_title"> + <PreferenceCategory android:key="category_hardware" + android:title="@string/category_hardware_title"> + <com.cyanogenmod.settings.device.VibratorTuningPreference + android:key="vibrator_tuning" + android:title="@string/vibrator_tuning_title_head" + android:summary="@string/vibrator_tuning_summary_head" + /> + </PreferenceCategory> |