I considered the support libraries 'tools'. Will post over there, thanks. Am Sonntag, 22. März 2015 06:52:01 UTC+1 schrieb Jake Wharton: > > This is a tools list, not a normal development list. There is a > development list that you should email instead. > > The wrapper layout was used to prevent a fragment's view for saving its > own state. The fragment manager does that itself as part of its back stack > management. On API 11 a native method was added for this. Perhaps they > conditionally add the view now. > On Thu, Mar 19, 2015 at 8:31 AM florian weigl <[email protected] > <javascript:>> wrote: > >> After updating from >> com.android.support:support-v13:21.0.0 >> >> to >> com.android.support:support-v13:22.0.0 >> >> I noticed a very important change in behaviour of the >> getView() >> >> method of >> android.support.v4.app.Fragment >> >> With version 21, getView() returns a >> NoSaveStateFrameLayout >> >> which then contains as a single child the Layout that was inflated in the >> Fragments onCreateView method. >> >> With version 22, getView() returns the inflated layout itself, without >> the enclosing NoSaveStateFrameLayout. >> >> This is, for me, reproducable on the most simple app (Android Studio >> wizard, Activity with Fragment) and reproducable all the time. >> This can cause trouble if you use the getView() method to retrieve the >> fragment's view at runtime and rely, for example, on the first child of >> getView() being a ViewGroup of a certain type (LinearLayout, ...). >> >> Perhaps someone can explain >> >> a. what the NoSaveStateFrameLayout is, >> b. why it isn't used anymore and >> c. if the behaviour of com.android.support:support-v13:22.0.0 is >> intended that way. >> >> Best regards, Florian >> >> -- >> You received this message because you are subscribed to the Google Groups >> "adt-dev" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> >
-- You received this message because you are subscribed to the Google Groups "adt-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
