-
Notifications
You must be signed in to change notification settings - Fork 397
ThumbApi
谷进杰 edited this page Jun 18, 2019
·
1 revision
The thumb is belong to RangeSeekBar.leftSeekBar
and RangeSeekBar.rightSeekBar
. You can set a different style for each SeekBar.
rangeSeekBar.leftSeekBar.setThumbHeight();
rangeSeekBar.leftSeekBar.setThumbWidth();
//xml
app:rsb_thumb_width="40dp"
app:rsb_thumb_height="40dp"
When you touch down the thumb, the thumb will scale with the ratio.
当你触摸按钮时,按钮会随着比例缩放。
//xml
app:rsb_thumb_scale_ratio="1.2"
rsb_thumb_drawable
is when you touch down the thumb button
rsb_thumb_drawable
是当你按下按钮时的背景。
//xml
app:rsb_thumb_drawable="@drawable/xxx"
rsb_thumb_inactivated_drawable
is when you don't touch down the thumb button
rsb_thumb_inactivated_drawable
是当你没有按下按钮时的背景。
//xml
app:rsb_thumb_inactivated_drawable="@drawable/xxx"