简体   繁体   English

如果我使用 gridview 将选定的图像传递给第二个片段,如果我想将选定的图像传递给第二个到第三个片段。 那会怎么办?

[英]if I pass selected image using gridview to second fragment , If I want to selected image pass second to third fragment. then how will do?

As passed the image view .it getting error .通过图像视图。它得到错误。

    Builder build = new Builder();
    build.putInt("key value" , image view);

您可以发送图像本地路径并获取拍手显示图像

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Android / Fragment-如何传递Last Fragment的参数并发送给Previous Fragment? - Android / Fragment - How do I pass parameters of the Last Fragment and send to Previous Fragment? 膨胀 class 片段时出错。 我可以在这里做什么? - Error inflating class fragment. What can I do here? 如果我在 XML 布局中声明一个片段,如何将它传递给 Bundle? - If I declare a fragment in an XML layout, how do I pass it a Bundle? 如何在 Android Studio 中使用 Activity 而不是 Fragment 更改 BottomNavigationView 中选定图标的颜色? - How do I change the color of the selected icon in BottomNavigationView using Activity instead of Fragment in Android Studio? 我想将数据从活动转移到片段,然后在片段中显示数据。 我的代码不起作用 - I want to transfer data from activity to fragment and then display data in the fragment. My code doesn't work 如何将数据从类传递到片段? - How do I pass data from a class to a fragment? 如何将变量从活动传递到片段? - How do I pass a variable from an activity to a fragment? 如何在android中将数据从活动传递到片段 - How do I pass data from activity to fragment in android 如何将自定义对象传递到其他片段中的列表? - How do I pass a Custom Object to a list in a different fragment? 将选定的下拉列表传递到第二个下拉列表中 - Pass selected dropdown list into second dropdown list
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM