Vaibhav Jani..
30
你必須改變progressDrawable和thumb的SeekBar來調整它的厚度:
androidseekbar控制、android:id="@+id/seekBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/indSeekBar"
android:layout_marginTop="48dp"
android簡單項目及代碼,android:progressDrawable="@drawable/seek_bar"
android:thumb="@drawable/seek_thumb"
/>
添加drawable文件夾seek_bar.xml:
android第一行代碼2源碼?android:shape="line">
android:color="@color/seek_bar_background"
android:width="@dimen/seek_bar_thickness"/>
android 11,android:shape="line">
android:color="@color/seek_bar_progress"
android:width="@dimen/seek_bar_thickness"/>
androidstudio代碼?android:shape="line">
android:color="@color/seek_bar_secondary_progress"
android:width="@dimen/seek_bar_thickness"/>
seek_thumb.xml:
android seekbar?
android:shape="oval">
android:height="@dimen/seek_bar_thumb_size"
android:width="@dimen/seek_bar_thumb_size"
android:layout_width。/>
添加到維度資源(更改此項以調整厚度):
4dp
20dp
添加顏色資源:
android:layout_weight、#ababab
#ffb600
#3399CC
版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。
工作时间:8:00-18:00
客服电话
电子邮件
admin@qq.com
扫码二维码
获取最新动态