漂亮的Android范圍拖動選擇條:Android Range Slider View
漂亮的Android范圍拖動選擇條:Android Range Slider View
特性
- Ripple effect on Android Lollipop devices
- Option to set custom colors for slider
- Option to set custom colors for slider height </ul>
用法
Add a dependency to yourbuild.gradle:
dependencies {
compile 'com.chan.rsv:rsv:1.0.0'
} Add thecom.chan.rsv.RangeSliderViewto your layout XML file.
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:rsv="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<com.chan.rsv.RangeSliderView
android:id="@+id/rsv_small"
android:layout_marginTop="50dp"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
rsv:filledColor="#1A5F77"
/>
<com.chan.rsv.RangeSliderView
android:id="@+id/rsv_large"
android:layout_marginTop="50dp"
android:layout_width="match_parent"
android:layout_height="100dp"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
rsv:filledColor="#FF6600"
/>
</LinearLayout> 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!