如何点击按钮后,得到一个搜索栏按钮

由网友(自作孽)分享简介:我做油漆的应用程序。我想控制使用寻求吧涂料使用画笔的大小。 I made an application on paint. I want to control the size of brush being used in paint using seek-bar. 在菜单(选项),我有改变画笔大小的选择。因此,通...

我做油漆的应用程序。我想控制使用寻求吧涂料使用画笔的大小。

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

在菜单(选项),我有改变画笔大小的选择。因此,通过点击它,一个搜索栏应该出现,我应该能够控制,使用Save按钮(设置),然后使用里面的油漆值。

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.

我该怎么办呢?

推荐答案

请搜索栏里面看到XML或当你得到它的onCreate方法的参考。

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

按钮点击使其可见。

通过在你的搜索栏登记OnSeekBarChangeListener使用最新的值。

Use latest values by registering OnSeekBarChangeListener on your Seekbar.

阅读全文

相关推荐

最新文章