-
Notifications
You must be signed in to change notification settings - Fork 99
Open
Description
How to setItemClickListener?I set OnClickListener to the ItemView.The current selected one can receive events but the others can not receive events.
code like this
public Object instantiateItem(@NonNull ViewGroup container, final int position) {
View view = LayoutInflater.from(SwitchWheelActivity.this).inflate(
R.layout.item_text, container, false);
view.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
}
});
TextView textView = view.findViewById(R.id.tv_type);
textView.setText(titles[position]);
container.addView(view);
return view;
}
salesfg, davidhowe and Tiam-Abderezai
Metadata
Metadata
Assignees
Labels
No labels