[英]Add item to RecyclerView in other Activity
I'm working on a simple application, but I got stuck with the Android design architecture. 我正在开发一个简单的应用程序,但是我陷入了Android设计架构的困境。 In my main Activity, I have a RecyclerView which shows a list of items.
在我的主活动中,我有一个RecyclerView,其中显示了项目列表。 When I click the floating action button in the main Activity, a new Activity (input Activity) is started where a new item to the RecyclerView must be added.
当我单击主活动中的浮动动作按钮时,将启动一个新的活动(输入活动),必须在其中添加RecyclerView的新项目。
What is the best way to do this? 做这个的最好方式是什么?
Since I'm new to Android application development, I'm not sure how to do this. 由于我是Android应用程序开发的新手,因此我不确定如何执行此操作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.