binding-collection-adapter icon indicating copy to clipboard operation
binding-collection-adapter copied to clipboard

itemClick item 点击事件怎么监听

Open litaoyuan opened this issue 4 years ago • 6 comments

Is this a general databinding issue or question? You are more likely to get a response from somewhere like StackOverflow.

Issue

Please be as detailed as possible and include a (formatted) stacktrace if relevant. A sample project that reproduce the problem goes a long way!

Feature Request

Please give an example use-case on why the feature is useful. Keep in mind the scope of this project is to bind data to RecyclerView/ListView/ViewPager etc, not to add additional features to those views.

litaoyuan avatar Jun 14 '20 03:06 litaoyuan

Thank you for reporting your issue. In order to look into it, can you please provide a sample project and clear steps to reproduce?

evant avatar Jun 14 '20 03:06 evant

就是我想实现单个item 点击监听,没有看到有说明文档

litaoyuan avatar Jun 14 '20 03:06 litaoyuan

The sample app has click listener examples https://github.com/evant/binding-collection-adapter/blob/master/app/src/main/res/layout/item.xml. You might be able to get more help on a place like stack overflow.

evant avatar Jun 14 '20 03:06 evant

dom跑不起来,想问下,是不是还要写adapter

litaoyuan avatar Jun 14 '20 05:06 litaoyuan

bindExtra 可以绑定一个监听器

lvzesong avatar Aug 17 '20 07:08 lvzesong

很简单啊,bindExtra

lvzesong avatar Nov 04 '20 01:11 lvzesong