Refactor GestureNavigationSeekBarPreference
- Make GestureNavigationSeekBarPreference more flexible to configure Fixes: 146462894 Test: adb shell am start -a android.settings.ASSIST_GESTURE_SETTINGS adb shell am start -a com.android.settings.GESTURE_NAVIGATION_SETTINGS Change-Id: Ibc7ed8456fe4a42f12f0d436f53756df268acfbe
This commit is contained in:
@@ -62,7 +62,6 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="start|top"
|
||||
android:gravity="start"
|
||||
android:text="@string/low_label"
|
||||
android:layout_weight="1"/>
|
||||
|
||||
<TextView
|
||||
@@ -72,7 +71,6 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="end|top"
|
||||
android:gravity="end"
|
||||
android:text="@string/high_label"
|
||||
android:layout_weight="1"/>
|
||||
|
||||
</LinearLayout>
|
@@ -159,6 +159,12 @@
|
||||
<attr name="textOff" format="reference" />
|
||||
</declare-styleable>
|
||||
|
||||
<!-- For LabeledSeekBarPreference -->
|
||||
<declare-styleable name="LabeledSeekBarPreference">
|
||||
<attr name="textStart" format="reference" />
|
||||
<attr name="textEnd" format="reference" />
|
||||
</declare-styleable>
|
||||
|
||||
<declare-styleable name="TintDrawable">
|
||||
<attr name="android:tint" />
|
||||
<attr name="android:drawable" />
|
||||
|
@@ -28,17 +28,21 @@
|
||||
android:persistent="false"
|
||||
android:title="@string/back_sensitivity_dialog_title">
|
||||
|
||||
<com.android.settings.gestures.GestureNavigationSeekBarPreference
|
||||
<com.android.settings.widget.LabeledSeekBarPreference
|
||||
android:key="gesture_left_back_sensitivity"
|
||||
android:title="@string/left_edge"
|
||||
android:max="3"
|
||||
android:selectable="true"/>
|
||||
android:selectable="true"
|
||||
settings:textStart="@string/low_label"
|
||||
settings:textEnd="@string/high_label"/>
|
||||
|
||||
<com.android.settings.gestures.GestureNavigationSeekBarPreference
|
||||
<com.android.settings.widget.LabeledSeekBarPreference
|
||||
android:key="gesture_right_back_sensitivity"
|
||||
android:title="@string/right_edge"
|
||||
android:max="3"
|
||||
android:selectable="true"/>
|
||||
android:selectable="true"
|
||||
settings:textStart="@string/low_label"
|
||||
settings:textEnd="@string/high_label"/>
|
||||
</PreferenceCategory>
|
||||
|
||||
<com.android.settingslib.widget.FooterPreference
|
||||
|
Reference in New Issue
Block a user