[英]Update View in Activity in response to recycler view item click
I have this type of activity layout 我有这种活动布局
In my layout, the yellow portion is my recyclerview, which is currently working as the expandable list. 在我的布局中,黄色部分是我的recyclerview,目前正在用作可扩展列表。 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. 现在在我的场景中,当用户单击recyclerview中的任何项目时,布局都会在图像中由绿色区域及其子项表示的活动中更改。 Is there any way to do so? 有什么办法吗?
您可以使用回调方法。单击项目更新UI时会使用回调方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.