-
Notifications
You must be signed in to change notification settings - Fork 396
ProgressApi
谷进杰 edited this page Jun 18, 2019
·
1 revision
//java
rangeSeekBar.setProgressHeight(4);
//xml
app:rsb_progress_height="4dp"
//java
rangeSeekBar.setProgressRadius(dp2px(4));
//xml
app:rsb_progress_radius="4dp"
the color of progress bar when in progress. 进度条进度的颜色
//java
rangeSeekBar.setProgressColor(Color.RED);
//xml
app:rsb_progress_color="#f1f1f1"
//java
rangeSeekBar.setProgressColor(Color.GRAY);
//xml
app:rsb_progress_default_color="#f1f1f1"
the drawable of progress bar when in progress.
//java
rangeSeekBar.setProgressDrawableId(R.drawable.xxx);
//xml
app:rsb_progress_drawable="@drawable/xxx"
//java
rangeSeekBar.setProgressDefaultDrawableId(R.drawable.xxx);
//xml
app:rsb_progress_drawable_default="@drawable/xxx"