Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例如,我希望当我单击复选框“a”时,文本视图 1 显示“a”,每个文本视图有 3 个选项。谢谢您的帮助。
a.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { @Override public void onCheckedChanged(CompoundButton buttonView,boolean isChecked) { if(isChecked) { text_view1.setText("a"); } } };