布局里子控件点击的不起作用啊
Opened this issue · 2 comments
chhandsome commented
设置了监听写在ViewHolder里
@OverRide
public View createView(Context context) {
View view = LayoutInflater.from(context).inflate(R.layout.item_agent_apply, null);
imageView = view.findViewById(R.id.agent_iv);
tv_type = view.findViewById(R.id.tv_type);
tv_num = view.findViewById(R.id.tv_num);
textView52 = view.findViewById(R.id.textView52);
textView53 = view.findViewById(R.id.textView53);
textView55 = view.findViewById(R.id.textView55);
bt_apply = view.findViewById(R.id.bt_apply);
bt_apply.setOnClickListener(new View.OnClickListener() {
@OverRide
public void onClick(View v) {
if(null != onClildClickListener) {
onClildClickListener.click(v, 1);
}
}
});//调用后并不起作用
return view;
}
JovanLep commented
写在 setPage前面就OK了
JovanLep commented
我看前面的历史issues得出的结论