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.
如何从线性布局中动态创建的复选框中获取选定的复选框值。请帮帮我。
您可以在复选框上使用 CheckedChange 列表器。
示例:chkBox.setOnCheckedChangeListener(new OnCheckedChangeListener() {
@Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { if (isChecked) { //Do operations when checked } } });