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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -