Revert "GameBar: Removed Minus and Plus Icons and Fixed Thumb Color (Black Middle Issue)"

This reverts commit a93d4c971e.
This commit is contained in:
2026-01-08 04:03:28 +09:00
parent 92b9c2df5d
commit 87c858068a
2 changed files with 8 additions and 6 deletions

View File

@@ -100,8 +100,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:visibility="gone" />
android:layout_centerVertical="true" />
<ImageView
android:id="@+id/plus"
@@ -109,14 +108,15 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:visibility="gone" />
android:layout_centerVertical="true" />
<LinearLayout
android:id="@+id/seekbar"
android:layout_width="match_parent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_toEndOf="@id/minus"
android:layout_toStartOf="@id/plus"
android:layout_centerVertical="true" />
</RelativeLayout>
</RelativeLayout>

View File

@@ -223,7 +223,9 @@ public class PartsCustomSeekBarPreference extends Preference implements Slider.O
mSlider.setThumbElevation(res.getDimensionPixelSize(
com.android.settingslib.widget.preference.slider.R.dimen
.settingslib_expressive_slider_thumb_elevation));
mSlider.setThumbStrokeWidth(0);
mSlider.setThumbStrokeWidth(res.getDimensionPixelSize(
com.android.settingslib.widget.preference.slider.R.dimen
.settingslib_expressive_slider_thumb_stroke_width));
mSlider.setThumbTrackGapSize(res.getDimensionPixelSize(
com.android.settingslib.widget.preference.slider.R.dimen
.settingslib_expressive_slider_thumb_track_gap_size));