AndroidTreeView icon indicating copy to clipboard operation
AndroidTreeView copied to clipboard

Cannot find item which was clicked

Open nilesh211 opened this issue 9 years ago • 1 comments

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; }

nilesh211 avatar Mar 09 '16 05:03 nilesh211

So click event does not work? Which line fails for you?

bmelnychuk avatar Mar 16 '16 08:03 bmelnychuk