Cannot find item which was clicked
Well i was trying to implement your library and was testing with FolderStructureFragment. The issue is when i click on the item its background should change to say blue just to show that it is selected and i should be able to update the data in that. When i click on the other item the previous item which was selected, background should change to white and the current clicked should change to blue.
@Override public void toggle(boolean active) { if (TestFragment.preLayoutParent != null) TestFragment.preLayoutParent.setBackgroundColor(context.getResources().getColor(R.color.colorWhite)); arrowView.setImageDrawable(context.getResources().getDrawable(active ? R.drawable.ic_seen : R.drawable.ic_sent)); layoutParent.setBackgroundColor(context.getResources().getColor(active ? R.color.colorPrimary : R.color.colorWhite)); TestFragment.preLayoutParent = layoutParent; TestFragment.preArrowView = arrowView; TestFragment.preTextValue = tvValue; }
So click event does not work? Which line fails for you?