在 PreferenceScreen 布局里面,做Android系统应用的,比如Settings模块,会用到PreferenceScreen,(可以先学习一下:https://blog.csdn.net/sk719887916/article/details/42437253?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task)
但是Android又没有PreferenceScreen控件,所以就必须自定义:
seekbar.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<SeekBar
android:id="@+id/seekBar1"
android:layo