// RadioButton button = new RadioButton(this);
RadioButton button = (RadioButton) getLayoutInflater().inflate(R.layout.new_radio_btn, null);
// button.setButtonDrawable(new ColorDrawable(Color.TRANSPARENT));
// button.setText(list.get(i));
// ViewGroup.LayoutParams params = new ViewGroup.LayoutParams(LayoutParams.WRAP_CONTENT
// ,LayoutParams.WRAP_CONTENT);
// params.width = NormalUtil.dip2px(this, 50);
// params.height = 900;
button.setPadding(NormalUtil.dip2px(DetailsActivity.this, 15), 0, NormalUtil.dip2px(DetailsActivity.this, 15), 0);
// button.setGravity(Gravity.CENTER);
// button.setTextSize(16);
TextView ttx = (TextView)button.getText();
ttx.setEms(1);
button.setHeight(180);
button.setWidth(90);
// button.setLayoutParams(params);
// button.setBackground(getResources().getDrawable(R.drawable.details_btn));
// button.setTextColor(getResources().getColor(R.color.black));
// radioGroup.addView(button,params_rb);
// if (i == 0) {
// button.setTextColor(getResources().getColor(R.color.white));
// button.setClickable(true);
// }
安卓随笔记录
最新推荐文章于 2024-07-07 00:00:31 发布