-2

How can I pass my ImageView between Fragment and Activity? In one word, I need to pass ImageView with Picture to another Fragment screen. I try to use this source code to pass ImageView between first and second Activity: https://github.com/REC-LABS/REC_Photo_Editor Thank you a lot!

Starlight
  • 1
  • 2
  • you could have done a simple google search to find lots of result of passing variables. transferring one view to from one activity view to another fragment view isnt possible. you need to recreate the imageview and just use the image from the activity – Shubhank May 14 '16 at 14:14
  • 3
    Possible duplicate of [how to pass object between activity and fragment](http://stackoverflow.com/questions/17279690/how-to-pass-object-between-activity-and-fragment) – timbre timbre May 14 '16 at 14:57

2 Answers2

0

Create a construction in fragment and while attaching that fragment add ImageView as its parameter.

Vishwesh Jainkuniya
  • 2,821
  • 3
  • 18
  • 35
0

you need to recreate the imageview and just use the image from the activity. Create a parcelable, simply to pass in intent/Bundle as normal object, get it in your fragment/Activity

Jitendra Prajapati
  • 1,002
  • 1
  • 10
  • 33