How to get a seekbar after clicking button

故事扮演 提交于 2019-12-11 15:46:56

问题


I made an application on paint. I want to control the size of brush being used in paint using seek-bar.

In the menu(options) ,I have an option of changing brush size. So, by clicking on it, a seek bar should appear and I should be able to control that using save button (to set) and then use that value inside paint.

How do I do that?


回答1:


Make seekbar visible inside xml or when you get its reference in onCreate method.

on button click make it visible.

Use latest values by registering OnSeekBarChangeListener on your Seekbar.



来源:https://stackoverflow.com/questions/17506026/how-to-get-a-seekbar-after-clicking-button

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!