Monday, September 26, 2011

Re: [android-developers] how start fragments

I would recommend that the activity handle all starting of fragments.
The activity is the code that knows how big the screen is and
therefore whether these other fragments should be displayed directly
or displayed by starting another activity. IOW, keep the fragments
themselves ignorant of screen size to the extent possible.

On Sat, Sep 24, 2011 at 10:13 AM, emanuele <emanuele.g@gmail.com> wrote:
> Hello guys, I ve the following scenario: A fragmentActivity which
> manage four different ListFragment. Every ListFragment can launch
> different kind of fragments and these could launch others fragments.
> What I need to understand is who can or cannot launch fragments. Is
> responsability of the FragmentActivity or could be the ListFragment,
> when onListItemClick is fired, for instance?
>
> --
> 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
>

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, One Low Price!

--
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