android RadioButton 点击时候出现点击声音的效果
16lz
2022-01-24
final RadioButton radioButtonTypeOne = (RadioButton) dialog.findViewById(R.id.select_type_one);
final RadioButton radioButtonReadPoint = (RadioButton) dialog.findViewById(R.id.select_type_two);
RadioGroup mRadioGroup = (RadioGroup) dialog.findViewById(R.id.select_type_group);
radioButtonTypeOne.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
}
});
radioButtonTypeTwo.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
}
});
给RadioButton添加上点击事件就可以实现点击,RadioButton时候有声音。
更多相关文章
- Android模仿Buttonbar
- android点击空白区域隐藏软键盘的实现
- Android动态添加TextView
- android ontouch onclick 触发顺序
- Android(安卓)EdtiText 添加表情
- 为ListActivity 添加Button
- Android窗口机制(一)——Window,PhoneWindow,DecorView理解
- Android中给Activity添加返回键
- Android自学笔记(番外篇):全面搭建Linux环境(二)——VMware Workstati