android - Show a sub item on the recycler view after click on an item in the recycler view -
i'm working in android application want show sub item's in recycler view witch included in navigation drawer after click in 1 of item's
here's part of code handle click event` class adapterviewholder extends recyclerview.viewholder { imageview row_icon; textview row_text;
public adapterviewholder(view itemview) { super(itemview); row_icon = (imageview) itemview.findviewbyid(r.id.row_icon); row_text = (textview) itemview.findviewbyid(r.id.row_text); row_text.setonclicklistener(new view.onclicklistener() { @override public void onclick(view v) { } }); } }`
by clicking on item add new item below item , notify adapter , new item (you can customize item sub item)
Comments
Post a Comment