[英]Android: How to hide Seekbar progress?
The Seekbars
got that blue progress indicator. Seekbars
有那个蓝色的进度指示器。 In my case I just want to show a percentage progress in in a TextView
, so I don't need it.在我的例子中,我只想在
TextView
中显示进度百分比,所以我不需要它。
How can I hide the blue indicator for the Seekbar
progress?如何隐藏
Seekbar
进度的蓝色指示器?
在布局文件中添加android:progressDrawable="@android:color/transparent"
just use只是使用
android:progressTint="@android/color:transparent"
it makes progress transparent.它使进展透明。
Create 2 drawables for bar background and progress background.为栏背景和进度背景创建 2 个可绘制对象。
If you don't want to show progress view then just comment progress background syntax ( in the custom class file ) and如果您不想显示进度视图,则只需注释进度背景语法(在自定义 class 文件中)和
android:progressDrawable="@android:color/transparent"
will do rest of the part for you android:progressDrawable="@android:color/transparent"
将为您完成 rest 部分
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.