Commit 7dd4a53
committed
Adding new CHANGING transition to LayoutTransition.
LayoutTransition used to depend on child views being added/removed or
shown/hidden in the transition container. These evens would trigger animations
to fade the child view as well as those to animate the side-affected changes
to sibling views. This CL enables a new feature in LayoutTransition that
enables animating any changes to the layout of the children in the container
whenever a layout occurs. For example, you can change the LayoutParams of a
child view and call requestLayout() to automatically animate those changes.
This capability is not enabled by default. To enable, call the new
LayoutTransition.enableTransitionType(LayoutTransition.CHANGING) method.
Change-Id: I4d07a3b36245353b2151f0dca4f75080ab6a45921 parent c843642 commit 7dd4a53
File tree
3 files changed
+280
-64
lines changed- api
- core/java/android
- animation
- view
3 files changed
+280
-64
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2311 | 2311 | | |
2312 | 2312 | | |
2313 | 2313 | | |
| 2314 | + | |
| 2315 | + | |
2314 | 2316 | | |
2315 | 2317 | | |
2316 | 2318 | | |
| |||
2321 | 2323 | | |
2322 | 2324 | | |
2323 | 2325 | | |
| 2326 | + | |
2324 | 2327 | | |
2325 | 2328 | | |
2326 | 2329 | | |
| |||
2335 | 2338 | | |
2336 | 2339 | | |
2337 | 2340 | | |
| 2341 | + | |
2338 | 2342 | | |
2339 | 2343 | | |
2340 | 2344 | | |
| |||
0 commit comments