New fresh look for CustomSeekbar

Oreo prefs style

thanks @Mazda-- for suggestion on how to remove the top divider

Signed-off-by: xyyx <xyyx@mail.ru>
This commit is contained in:
ezio84
2017-09-07 17:38:27 +02:00
committed by hungphan2001
parent c665521d8c
commit bbd8f269b5
2 changed files with 45 additions and 26 deletions

View File

@@ -135,6 +135,9 @@ public class CustomSeekBarPreference extends Preference implements SeekBar.OnSee
mStatusText.setMinimumWidth(30);
mSeekBar.setProgress(mCurrentValue - mMin);
mTitle = (TextView) view.findViewById(android.R.id.title);
view.setDividerAllowedAbove(false);
//view.setDividerAllowedBelow(false);
}
public void setMax(int max) {