BaseRecyclerViewAdapterHelper icon indicating copy to clipboard operation
BaseRecyclerViewAdapterHelper copied to clipboard

如果多个子控件分别设置点击事件,怎么设置?

Open choimroc opened this issue 8 years ago • 1 comments

只看到了对多个子控件设置统一的点击事件,而且convert居然不返回position?

choimroc avatar Sep 01 '18 09:09 choimroc

adapter.setOnItemChildClickListener(new BaseQuickAdapter.OnItemChildClickListener() {
            @Override 
            public void onItemChildClick(BaseQuickAdapter adapter, View view, int position) {
//区分不同view的id
                Log.d(TAG, "onItemChildClick: ");
                Toast.makeText(ItemClickActivity.this, "onItemChildClick" + position, Toast.LENGTH_SHORT).show();
            } 
        }); 

AllenCoder avatar Sep 24 '18 01:09 AllenCoder