Commit Graph

4 Commits

Author SHA1 Message Date
Chet Haase
976d6ceb73 Clean up LayoutTransition demos for smaller screens.
These demos assumed the size of a tablet device and looked pretty
awful on phones.

Change-Id: I246ef5a5f4619c1f2fe689eca321314375722014
2011-10-06 12:46:00 -07:00
Chet Haase
97ee3c3898 Adjust layouts of transition demos to improve fade-outs.
When a container's child count goes to zero, it may report a measurement size
of zero. This affects LayoutTransition's fading-out of target views
because they may get clipped out by a layout that got sized to 0 because it
thinks it has no children. The workaround is to tell the layout to size itself
either with some minimal size (in the case of the FixedGridLayout used by some
demos) or with match_parent in some cases to ensure that the layout always has
some nonzero size.

Change-Id: I908e64d4fb054928af277a021a328e94477c9c83
2011-02-15 09:46:28 -08:00
Gilles Debunne
12fca8d8f0 Renamed fill_parent to match_parent
Change-Id: I12ddb06d560f4f373c5ad292823a4646be133744
2010-11-11 12:10:43 -08:00
Chet Haase
2a06483139 Demos for show/hide layout transitions
Change-Id: Idb7ecb66b7dc0126a230385dd09af6a9208d5345
2010-10-04 15:19:26 -07:00