摘要: 1,简单说明,打气筒就是将我们的xml布局转换为我们的view对象,不扯远了,直接看代码1 A:从context中获取2 LayoutInflater inflater1 = LayoutInflater.from(this);3 B:通过Activitiy直接获取4 LayoutInflater ... 阅读全文
posted @ 2015-10-26 19:53 阿呆哥哥 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 1,不多说,小知识点,直接上代码1 LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(15, 15);// 创建参数对象,设置宽和高2 layoutParams.setMargins(5, 0, 5, 0);... 阅读全文
posted @ 2015-10-26 16:45 阿呆哥哥 阅读(5581) 评论(0) 推荐(0) 编辑