Android的,灰色除非选择单选按钮了吧求 [英] Android, Gray out seek bars unless radio button is selected

查看:197
本文介绍了Android的,灰色除非选择单选按钮了吧求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我限制用户要么选择默认的音频资料或定制音频设置,为此我使用的单选按钮,配置文件和定制音频设置,因此如果用户选择自定义设置都寻求酒吧都无使用,是有没有办法做到这一点,还数在寻求酒吧

I'm restricting user to either select default audio profiles or customized audio setting, for this purpose I'm using radio button for profiles and customized audio settings, so if user select customized settings all seek bars are reactive for use, Is there any way to do this, also numbers at seek bars

推荐答案

您使用的是搜索栏?
如果是这样的话,你可能要在默认情况下启用的属性设置为false:

Are you using a SeekBar ? If that's so, you may want to set the enabled attribute to false by default :

android:enabled="false" 

,这样,当你的单选按钮被选中,你的属性设置为true编程

so that, when your RadioButton is checked, you set the attribute to true programmatically

yourButton.setEnabled(true);

这篇关于Android的,灰色除非选择单选按钮了吧求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆