ExpandableListView-RecylerChildItems icon indicating copy to clipboard operation
ExpandableListView-RecylerChildItems copied to clipboard

OnItemclicklistener

Open Shirish8893 opened this issue 8 years ago • 5 comments

@sivailango Trying to implement OnItemclick. Currently app crashes onItemclick event

Shirish8893 avatar Apr 26 '16 05:04 Shirish8893

i used this library...its VERY easy to use

xstar97 avatar Oct 11 '16 06:10 xstar97

on child item click not working....help me out please ...

123hidash avatar Oct 26 '16 16:10 123hidash

@123hidash were you able to fix this! .

ArunpandiyanMurugesan avatar Feb 25 '17 22:02 ArunpandiyanMurugesan

How to implement OnItemclick ?

YangJian1994 avatar Mar 12 '17 08:03 YangJian1994

What I did is, created a transparent overlay button in the call. And for which I have added the onClickListener.

Whenever the button gets the tap, I call a public method of main activity which will take care of any further required actions.

It may not be the nicest one but I made it work.

Code snippet is below for your reference. This goes inside onBindViewHolder of MobileAdapter.java

Button dummyClickButton = (Button) holder.dummyButtonForClick; dummyClickButton.setTag(position); dummyClickButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Log.d("POSITION", view.getTag()+""); ((HomeActivity)context).setSubCategory((Integer)view.getTag()); } });

ArunpandiyanMurugesan avatar Mar 23 '17 17:03 ArunpandiyanMurugesan