From ee3c9a49d184cfbaa585f33fa351097b00f80290 Mon Sep 17 00:00:00 2001 From: SerpentSpirale Date: Mon, 1 Feb 2021 11:02:08 +0100 Subject: [PATCH] CustomSeekBarPreference's title is now white --- .../net/kdt/pojavlaunch/prefs/CustomSeekBarPreference.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/prefs/CustomSeekBarPreference.java b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/prefs/CustomSeekBarPreference.java index 05694db8d..85f03cea7 100644 --- a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/prefs/CustomSeekBarPreference.java +++ b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/prefs/CustomSeekBarPreference.java @@ -2,6 +2,7 @@ package net.kdt.pojavlaunch.prefs; import android.content.Context; import android.content.res.TypedArray; +import android.graphics.Color; import android.util.AttributeSet; import android.view.View; import android.widget.SeekBar; @@ -52,6 +53,9 @@ public class CustomSeekBarPreference extends SeekBarPreference { @Override public void onBindViewHolder(PreferenceViewHolder view) { super.onBindViewHolder(view); + TextView titleTextView = (TextView) view.findViewById(android.R.id.title); + titleTextView.setTextColor(Color.WHITE); + textView = (TextView) view.findViewById(R.id.seekbar_value); textView.setTextAlignment(View.TEXT_ALIGNMENT_TEXT_START); SeekBar seekBar = (SeekBar) view.findViewById(R.id.seekbar);