【发布时间】:2014-04-16 05:09:03
【问题描述】:
我用来创建复选框的代码
try{
for (int i = 0; i < Utstyr.size(); i++) {
cb = new CheckBox(getApplicationContext());
cb.setText(""+Utstyr.get(i));
cb.setTextColor(Color.parseColor("#000000"));
cb.setTag(""+list_sted.get(i));
cb.setTextAppearance(getBaseContext(), android.R.attr.checkboxStyle);
checkbox_lay.addView(cb);
}}
catch(Exception e){
System.out.println("ohh i got busted...!!!");
}
如何获取选中的复选框的值.. 我想要复选框的名称
【问题讨论】:
标签: android eclipse tags android-checkbox