想要通過(guò)單擊某些內(nèi)容來(lái)更改線性布局的可見性 - 在顯示對(duì)話框之后。確定點(diǎn)擊方法是正確的。即使沒(méi)有單擊方法也不起作用。有可能嗎?例子: singleA.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { if (isChecked) { linearTYT.setVisibility(View.VISIBLE) }else{linearTYT.setVisibility(View.GONE) } }});它在對(duì)話框代碼中。
添加回答
舉報(bào)
0/150
提交
取消