Sunday, July 15, 2012

Re: [android-developers] Switching Fragments to Full Screen

Kostya,

I understand what you are discussing, however I am having a hard time figuring out how to implement it.  Specifically, I am trying to look at this when dealing with a MapFragment and a ListFragment.  Since there was no direct way to handle the MapFragment it is created through the TabHost method discussed at various websites online.  This means that the actual Fragment class implements a TabHost, while the Activity class holds the real MapActivity as well as the buttons.  This means that most examples I have found dealing with callbacks tend to be implemented within the fragment, however, the buttons and such are only within the MapActivity class.  I am not sure how to create a callback that can access the buttonclick from within the MapActivity, that reaches through the Fragment class back to the original calling activity to hide views and change layouts. 

Part of my problem with this is not being sure how to transmit data between different fragments in this special case in the first place.

All help is appreciated.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment