Commit Graph

78 Commits

Author SHA1 Message Date
George Mount
fe361d2113 Move shared elements to overlay when in a transition group.
Bug 15744995

Change-Id: Icf1ee603de23c7bb3bce3723cb24009e36f153d7
2014-08-08 18:01:31 +00:00
George Mount
6ceac2eafb Fix visibility propagation check.
Bug 16704963

Change-Id: I2538bac4b4565ac8c6b27407c7679fea55b1092b
2014-07-31 17:05:37 +00:00
George Mount
964c3cf5b2 Add default propagation back to Explode.
Bug 16217557

Change-Id: I47460db128749af978077755a777068392492aee
2014-07-29 14:13:00 +00:00
George Mount
2cacfe3a98 Allow changing bounds to and from a zero-sized bounds.
Bug 14590183

Change-Id: I596cb384198a6f7de14afed0d78711f127d3511e
2014-07-28 14:54:23 +00:00
Dake Gu
d761dcaf1c TransitionSet: fix excludeTarget not working
b/16552254

Change-Id: I01467e258754d95f1b9fa61a27d1da98eed9b57c
2014-07-25 19:19:07 +00:00
George Mount
51c014843a Fix Monkey NPE.
Bug 16135577

Change-Id: If2ea474fd9ca9232fec325deed0e9b9b806595f6
2014-07-25 13:59:37 +00:00
Paul Soulos
2dcab18c6c Adds ScrollBounds to the Transition framework
Change-Id: If22ab5162737f2d109e5eaf407a735523a146b7f
2014-07-22 14:17:48 -07:00
George Mount
ad88e1b1b2 API Council: Change docs and constant names.
Bug 16401545

Changed doc for ChangeImageTransform.
Changed IN/OUT to MODE_IN/MODE_OUT.
Changed mode to flag attribute.
Change-Id: Ia2ae9930f9725871c9b1d80b758a3a0808a8f0c6
2014-07-22 17:29:14 +00:00
George Mount
e3b50aecfd Fix NPE during construction from XML.
Bug 16322214

Change-Id: Ie2811a54880ab60b607ae29d7df04b0636e67197
2014-07-15 22:24:58 +00:00
George Mount
f3de5a2e34 Remove modified APIs
viewName was changed to transitionName and
MoveImage was replaced with ChangeImageTransform + ChangeBounds.

Change-Id: I5e0b0250ef3c926d1c3de212de3a5e1503e89b86
2014-07-11 14:37:11 +00:00
George Mount
b5ef7f8c6d Don't change View visibility during activity transitions.
Bug 16187776

Changing View visibility can change the View's focused item.
To prevent this, a backdoor is introduced into Transition
and Visiblity to set the target Visibility used in Activity Transitions.

Change-Id: Idfd2c6fba2cad80fecdfd086990ddc604f86ca68
2014-07-10 16:01:46 +00:00
George Mount
58bbdbd1f1 Fix targeting transition by transitionName.
Change-Id: I5e51b524a3a249cd2d7dbba3ccb06d0a5ca8fb73
2014-07-01 15:33:12 +00:00
George Mount
ecd857be39 Add curved motion to Transitions.
Bug 15197527

Added two public PathMotions: PatternMotion and ArcMotion.
ArcMotion is the algorithm provided by UX. PatternMotion
provides a mechanism for using a Path as a pattern.

Change-Id: Ie57fd5f4e62269acc1164eced39853a12c52bd77
2014-06-30 19:25:04 +00:00
George Mount
31e8005e06 Merge "Don't use overlay to transition ImageViews." 2014-06-27 15:56:14 +00:00
George Mount
18ab79967c Add IN/OUT flag for all Visibility transitions.
Bug 15758206

Change-Id: If9b1871117a6808c87adc84ab9215b913ebd2704
2014-06-26 07:30:11 -07:00
George Mount
990205eada Don't use overlay to transition ImageViews.
Bug 15744992

MoveImage used an overlay to transition ImageViews. This
caused strange problems when ImageViews were contained in
other Views. The new ChangeImageTransform does a smooth
transition for changes in scale type and bounds.

Change-Id: Ia5021f4828f8f818a8699b3bdd38437aeba1cfc8
2014-06-25 13:45:16 -07:00
George Mount
88f5993692 Merge "Allow custom transitions from XML." 2014-06-25 03:44:18 +00:00
George Mount
0a2ae002e6 Revert "Revert "API Review: Change View viewName attribute to transitionName.""
This reverts commit 1bdfbc68e22a64215ab8fa3e3d17676513546997.

Change-Id: Ie3fdf53b33cb2f61c1878055940f52ed9dfc8b08
2014-06-23 14:57:27 +00:00
John Reck
a3c1025b80 Revert "API Review: Change View viewName attribute to transitionName."
This reverts commit f1b1adf51b2a84e0ac83685812c7e8d86590af12.

Change-Id: I0e49aeed84f2a548e272a59f4e13c3fb74c2bfd9
2014-06-23 14:51:44 +00:00
George Mount
125578a863 API Review: Change View viewName attribute to transitionName.
Bug 15548520

Change-Id: I4009458d83dbffb20ff0100aaa42eea44d943378
2014-06-20 11:01:01 -07:00
George Mount
44d6638494 Allow custom transitions from XML.
Bug 15699798

Change-Id: I841289a72d7c08bb24b3e18380c79ba7960f9b22
2014-06-19 16:41:32 -07:00
George Mount
1f8c01181b Handle interruptions in Explode and Slide transitions.
Bug 15618842

Change-Id: I22431b59c6516ee330d897791b79fa9ed17ba727
2014-06-18 16:48:45 -07:00
George Mount
4c20ea2972 Fix blinking animation during Visibility transitions.
Bug 15618501

Change-Id: I9dff9eb386a4bfb51caec24f3f7cc0fad06ae04c
2014-06-18 11:13:06 -07:00
George Mount
d4c3c91dd0 Allow antroid.transition Transitions in fragments.
Bug 15274281
Bug 15189829

Change-Id: I8e2974430b84a611866fe20afe1f5745e803683f
2014-06-17 20:24:16 +00:00
George Mount
208dcade93 Prevent transitions from calling createAnimator for invalid views.
Bug 15285527

When two transitions affect different views, createAnimator is
on all Transitions for all views. This CL prevents createAnimator
from being called for Transitions that don't target a view.

Change-Id: I3f70a13b4ea38ad4a9b4724db438b40f6e80eafb
2014-06-11 13:14:32 -07:00
George Mount
dc21d3b280 API review: Constants to Gravity and Epicenter.
Bug 15432037

Constants for LEFT, RIGHT, TOP, BOTTOM moved to using Gravity.
Epicenter method name changed.

Change-Id: If226613794623fd50fdaf8fc61b0020d17628f68
2014-06-05 12:47:33 -07:00
George Mount
8cab50afda Fix for quick "back" in Activity Transitions.
Bug 14990153

Stops two potential animators working against the background
drawable. Forces the entering views to become visible onResume.

Change-Id: I2da66b54a16c6c69533eebbeff6db7f5a7794a89
2014-05-20 15:36:31 -07:00
George Mount
7b75062fb0 Allow changing order of matching Views in Transitions.
Bug 14899804

Change-Id: I13c080141fce6be8430d540e3c42d40a445bb224
2014-05-14 12:40:06 -07:00
George Mount
11d0415481 Merge "Check for null Drawable in MoveImage" 2014-05-13 23:31:09 +00:00
George Mount
30da61d477 Add view name to Transition matching.
Bug 14625214

Change-Id: Ia1b21e6bd0ea4892b504746e582aeb175e0f0506
2014-05-13 13:07:06 -07:00
George Mount
d8cdb8cc2c Check for null Drawable in MoveImage
Bug 14676155

Change-Id: Ic8d2c3fc471a876f5369e743e60ffb0f238f3eed
2014-05-13 09:33:54 -07:00
George Mount
764af2958b Merge "Fix mismatch in Transition ID/instances" 2014-05-08 16:58:18 +00:00
George Mount
6de56bb07e Fix mismatch in Transition ID/instances
Bug 14597573

In a Transition, when a View is removed from a Scene
and that View has an ID in common with another View
in the end Scene, it will be matched, even if the
View in the start Scene already had a matching View
by instance. This CL prevents a match by ID when an
instance match is available.

Future: disable matching when two views have the
same ID.

Change-Id: I0e51d1f2d0a2d05d09e8e135f090d0e1b2a67efc
2014-05-07 15:09:08 -07:00
George Mount
080443bcb6 Add ImageView-specific shared element activity transition code.
Bug 14497858

Probably more than 50% of shared elements will be ImageViews and
sharing the scale type and matrix between the two Activities will
simplify shared element transitions.

Also fixed MoveImage, which had a bug when the scale type was FIX_XY.

Change-Id: Ic5548b4d1420ced12507c18edf76c9e50e27a929
2014-05-05 12:25:43 -07:00
George Mount
265f209d55 Fixed transition start delay propagation when duration = 0.
Bug 14443184

Also gave the propagation speed a tweak to make it more
obvious that there is a propagation.

Change-Id: If9dc3172ae6ce7e6a712ccd1b83ebec9bf880bfa
2014-05-01 07:11:52 -07:00
George Mount
a98fb7ab6a Add mechanism for Transitions to target a class.
Bug 14289299

Added ability to target a specific class similarly to the
mechanism for excluding a specific class in Transitions.
Also changed XML tag from excludeTargetId to excludeId to
make it symmetric with excludeClass.

Change-Id: Ib371820ec75761243e75b659565b905b1b19c9a2
2014-04-29 13:08:39 -07:00
George Mount
608b87d9e5 Add Transform and ClipBounds Transitions.
Made MoveImage use an overlay view. Drawables
cover all Views in the overlay and there may
be a desire to order the overlays.

Change-Id: Ic7b81f0d26d8cce3f475c2eebbce01538bc55d46
2014-04-29 13:08:35 -07:00
George Mount
f976c3d42b Add ability to exclude Views in transition XML.
Bug 14259955

Change-Id: I47bb10c530c9fec8910ddd96156fc38d6027e1f6
2014-04-29 13:08:33 -07:00
George Mount
80c1210e59 Merge "Fade Transition sometimes disappeared improperly." 2014-04-28 17:23:53 +00:00
George Mount
1b2fb2ca13 Fade Transition sometimes disappeared improperly.
Bug 14320504

Change-Id: I43c2ddd34a5bd3a366027cd3c09d088baa4fb6f4
2014-04-25 17:07:58 -07:00
George Mount
8c0ceb34c3 Properly filter out excluded views in createAnimators() call.
Bug 14258783

Change-Id: I2d07e9d72a87674c215d36ccfc004c45623e7c24
2014-04-22 16:21:23 -07:00
George Mount
31a217290c Split Activity Transitions out of PhoneWindow.
Bug 13622834
Made it possible to use shared elements without making
Views invisible.

Change-Id: I1e85c6bc19e634a9af225ad7f0309b4f003ea462
2014-04-17 09:49:25 -07:00
George Mount
d6107a3170 Add Transitions useful for Activity transitions.
Slide: transition in and out of the edge of the scene.
Explode: transition to the scene borders

Moved capability from Fade to Visibility.

Change-Id: Ibeb0d8f751c990edc467570d9665fbe251af2703
2014-04-07 09:14:09 -07:00
George Mount
cf68aad316 Fix problem with Animators pausing the wrong Window.
Bug 13347005

Because Windows can share a UI thread, pausing/resuming
Animators in transitions can affect other Windows. This
isolates the pause/resume to the Window being operated
on.

Change-Id: Iac84a0a2c838f30c309eea4931467ba758c6ba78
2014-03-06 14:36:28 -08:00
George Mount
e180337ee9 Change Activity Scene Transitions to be more automatic redo.
This reverts commit 206e30cd93
along with removing the additional startActivity* methods
and replaces them with ActivityOptions makeSceneTransitionAnimation
methods.

Change-Id: I52bec31ae3c4cea6d549810ae5a7acd8aea176d8
2014-02-26 15:30:22 -08:00
George Mount
206e30cd93 Revert "Change Activity Scene Transitions to be more automatic."
This reverts commit f10587faad.

Change-Id: I2785a3d2d6b667cad6d61dcbbc1c624161735fa4
2014-02-26 08:56:30 -08:00
George Mount
f10587faad Change Activity Scene Transitions to be more automatic.
Shared element transitions are enabled by default
when the Window has a TransitionManager.

Shared element location and size are captured and
transferred to the target Activity.

ActionBar is treated as a shared element.

Change-Id: I0f22ea4e5cbe80254e848444e3f235cb742684f4
2014-02-25 11:12:16 -08:00
George Mount
0a778eda69 Cross-Activity Scene transition API.
First pass at API for cross-Activity Scene transitions.
Remaining work:
  Transition back
  Automatically capture hero element info
  Transfer of surface texture to synchronize between Activities
  Possibly use scene names to indicate preferred transition

Change-Id: I59d07de1fae694a46b92b1c82525daa301ec1377
2014-02-04 16:18:43 -08:00
Adam Powell
cfbe9be5b3 Add support for cross-activity scenes and transitions
* Add theme attributes for specifying a top-level TransitionManager
  for an activity window.

* Add window feature for automatic content transitions. This
  automatically assigns/creates a Scene for setContentView calls.

* Add named transitions. This allows apps to define APIs for
  handshake-agreements about which exit/entrance transitions to play.

* Add new transition type for ActivityOptions. This lets the system
  use ActivityOptions to communicate transition specifics and
  arguments to the called activity.

* Have ActivityManager pass appropriate ActivityOptions through to the
  called Activity. Have the called activity call back into the caller
  to let it know which transition of a possible requested set was
  chosen.

Still to do:

* Define and pass arguments for transitions. This will require
  defining a Parcelable version of TransitionValues and deciding how
  much leeway apps should have for these things.

* Determine how to appropriately filter the ActivityOptions bundle so
  that only appropriate data reaches the target.

* Determine if generalizing the auto-Scenes functionality to
  ViewGroups is appropriate.

Change-Id: I10684b926129ab2fbc1adec9ef31767237acae79
2013-12-05 10:06:19 -08:00
Adam Powell
ab42aec4bc Fix docs
Change-Id: Iaeef1812e3dfa76abe40468066860f73d8a10f79
2013-11-06 15:00:36 -08:00