一个布局里面引用另一个布局的控件
2014-05-12 09:20
351 查看
LayoutInflater factorys = LayoutInflater.from(mContext); View textEntryView = factorys.inflate(R.layout.scroll_fresh, null); comment_layout = (LinearLayout)textEntryView.findViewById(R.id.LinearLayout_comment); comment_ediText = (EditText)comment_layout.findViewById(R.id.comment_edit); btnCommentSent = (Button)comment_layout.findViewById(R.id.sentComment); btnCommentSent.setOnClickListener(btnCommentSentListener); btnCommentCancle = (Button)comment_layout.findViewById(R.id.cancleComment); btnCommentCancle.setOnClickListener(btnCommentCancleListener);
相关文章推荐
- 怎样在一个.c档里面取引用另一个.c档里面的静态结构体数组
- 请问Android中怎么在一个线性布局里面添加多个图表控件
- 遍历一个布局里面所有的控件
- 请问Android中怎么在一个线性布局里面添加多个图表控件
- node.js关于一个js文件引用另一个js文件里面的函数或者数组变量
- eclipse中一个项目引用另一个项目的方法
- 单击gridview控件外部的一个按钮,获取gridview中的一列数据,获得的数据插入到另一个表中
- 在Android的控件布局中,有一个奇葩的 layout_weight 属性
- <IOS>Xcode中一个工程如何引用另一个工程
- 在window里面套一个form,form里面fieldset,fieldset里面的控件如果给了ID,就出问题
- 一个 ScrollView 里面包含 viewpager 嵌套 listview 或 RecyclerView 极少代码实现的流畅滑动效果 处理一个两层滑动 view 的自定义布局,以最少的代码实现,
- 一个页面引用多个相同的用户控件时js失效
- 在一个线程中操作另一个线程的控件
- eclipse中一个项目引用另一个项目的方法
- 安卓开发——在Activity里如何获得另一个xml布局文件的控件
- 父布局用子布局里面的控件
- 同一页面一个用户控件如何给另一个用户控件中的控件赋值
- C# winform中一个类中如何调用另一个窗体的控件或方法
- 如何在一个窗体中调用另一个窗体的控件或方法
- 一个窗体调另一个窗体控件