开发者

ProgressBar not changeable by user

开发者 https://www.devze.com 2022-12-11 23:14 出处:网络
How can I make a ProgressBar in Android not changeable by user. I don\'t mean \'disabled\', since my application will update it dynamically.

How can I make a ProgressBar in Android not changeable by user. I don't mean 'disabled', since my application will update it dynamically. I would like the ProgressBar to update by my appl开发者_JAVA技巧ication but user can't move the bar in the Progress bar to change value?


Check your layout xml and code to make sure that you are using the ProgressBar widget and NOT the SeekBar widget.

SeekBar looks like the Progress bar but is user modifiable.

Have a look at this ProgressBar example from the ApiDemos for reference.

0

精彩评论

暂无评论...
验证码 换一张
取 消