Reputation: 93
I have this type of activity layout
In my layout, the yellow portion is my recyclerview, which is currently working as the expandable list. Now in my scenario, when the user clicks on any item in the recyclerview than the layout changes in the activity shown by, green area and its child in the image. Is there any way to do so?
Upvotes: 0
Views: 500
Reputation: 7868
Here is the simple example of pass value from recyclerview to activity using eventbus. Try this maybe will help you to solve your problem.
Upvotes: 3
Reputation: 332
You can use callback method.On click of item update UI using callback method.
Upvotes: 0