How to hold the selected image in GridView and pass to next activity after I click Button

前端 未结 2 352
借酒劲吻你
借酒劲吻你 2021-01-24 09:50

In my Activity I have an EditText, a Button and a GridView. The user selects the image from the GridView and enters the name

2条回答
  •  青春惊慌失措
    2021-01-24 10:29

    I think what you're looking for is passing data through navigation.

    It will allow you send your image and name data from one activity/fragment to the next one.

    Check out data-binding as well, might be useful.

提交回复
热议问题