动态添加View
来源:互联网 发布:top域名不备案会怎么样 编辑:程序博客网 时间:2024/05/19 13:10
String lable = "#" + allLableList.get(i);RadioButton radioButton = new RadioButton(mActivity);radioButton.setText(lable);radioButton.setTextSize(14f);radioButton.setButtonDrawable(null);radioButton.setBackgroundResource(R.drawable.bg_growth_radio);radioButton.setTextColor(mActivity.getResources().getColorStateList(R.drawable.bg_growth_textcolor));//距离其它组件的距离 等于 android:padding="15dp"radioButton.setPadding(Window.toPx(15), 0, Window.toPx(15), 0);// android:layout_width="wrap_content"RadioGroup.LayoutParams params = new RadioGroup.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.MATCH_PARENT);//内边距//params.setMargins(0, Window.toPx(5), 0, Window.toPx(5));radioButton.setLayoutParams(params);radioButton.setId(i);optionRg.addView(radioButton);
0 0
- 动态添加view
- scroolview 动态添加view
- Android 动态添加View
- 动态添加view
- Android 动态添加View
- android动态添加view
- Android 动态添加view
- android动态添加View
- 动态添加View
- LinearLayout动态添加View
- Android 动态 添加 View
- java动态添加view
- 动态添加 view
- 自定义View-1-动态添加view
- 动态添加View的问题
- 动态添加ViewPager的View
- 动态添加ViewPager的View
- 布局中动态添加View
- 过完年电脑上的证书都失效了
- python小点心--Event
- 手机App三年内将彻底消失??你相信么
- poj 2398 Toy Storage(叉积判断点是否在四边形内)
- 腾讯笔试题
- 动态添加View
- udhcpc的应用
- hadoop中使用MapReduce编程实例(转)
- 利用Google成为一个更好的程序员
- 抽象数据类型与类层次(一)
- 自己实现 一个MapReduce 示例
- POJ 1703 Find them, Catch them
- Sipdroid源码初探(二):监听来电,通话建立流程
- linux进程的后台运行、查看、关闭等命令