您的位置:首页 > 其它

一个布局里面引用另一个布局的控件

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);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: