Fixed
Status Update
Comments
il...@google.com <il...@google.com>
jb...@google.com <jb...@google.com>
ap...@google.com <ap...@google.com> #2
Hi Ed, Thank you so much for these suggestions. I've been reviewing them and merging them in. Hopefully it should be live. I've included a thank you note too in the article.
il...@google.com <il...@google.com> #3
Great! Thanks a lot, I'll look for the live updates soon!
Description
Component used: Fragment
Version used: 1.3.0-alpha07
It would be nice to have a way to retrieve the topmost fragment (i.e., the last added fragment) from a
FragmentContainerView
, particularly if it used the same technique asfindViewById()
to cast the Fragment to the right type.This would be particularly helpful when using View Binding or Data Binding where you have easy access to the
FragmentContainerView
instance, but not necessarily to itsR.id
to pass intofindFragmentById()
.With this, you could then write code such as: