Dianne or Romain Guy? Or anyone else can provide any suggestions?
On Thursday, April 26, 2012 1:45:34 PM UTC+8, spotleo wrote: > > Hi, > > I have a reusable UI component Fragment A that has been used > throughout various Activities and they all worked fine. > The controller logic is placed inside Fragment A whereas the view > layer is defined in Fragment A's layout file. > > Now I have a requirement to add Fragment A into part of Listview > item's layout file. > From my understanding, Fragment is no different from View from view > tree's perspective. In other words > when we use Hierarchy Viewer to inspect the view tree, we won't see > Fragment A, but instead we'll see the view > returned from Fragment A's onCreateView, so theoretically it is ok to > place Fragment A inside Listview item and I have > successfully done so. > > My question is, is my assumption correct? Is it safe to place Fragment > into ListView item? > Anything I need to be aware of when doing this? > > thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

