Mohit
Mohit

Reputation: 93

Update View in Activity in response to recycler view item click

I have this type of activity layout 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

Answers (3)

Horrorgoogle
Horrorgoogle

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

Anurag Singh
Anurag Singh

Reputation: 6200

Yes you can achieve this easily by using EventBus.

Upvotes: 0

Ragini
Ragini

Reputation: 332

You can use callback method.On click of item update UI using callback method.

Upvotes: 0

Related Questions