summaryrefslogtreecommitdiff
path: root/core/java/android/transition/TransitionInflater.java
Commit message (Collapse)AuthorAgeFilesLines
* Recycle TypedArrays in Fade and TransitionInflaterYuichi Araki2017-02-101-0/+2
| | | | | Test: Builds Change-Id: I91e214eafc87850dca6986af2054e5edca46e724
* Fix import statement in view|transition|animation packages.Aurimas Liutikas2016-10-121-5/+5
| | | | | | | This change also remove trailing whitespace. Test: code still compiles Change-Id: I7eff4546320d67d2bae58d31bad0625ea0791b8f
* Always force constructors accessible during inflationAlan Viverette2015-05-041-1/+1
| | | | | | | | | | | | | | We now correctly throw an IllegalAccessException for non-public accesses, but we were relying on the old incorrect behavior during inflation. This CL forces constructors to be accessible so that we emulate the old behavior and don't crash. Where we were already doing this, the CL moves the setAccessible() call immediately after the getConstructor() call, since there's no point in calling it multiple times. Bug: 20810495 Change-Id: I63dfcb857e445f688080eea05e86ef22760ed49f
* Make sure Transition constructor is accessible before invokingTony Mantler2015-04-281-1/+1
| | | | | | b/20666031 Change-Id: Ief519ac00aed8ce84cbc852025f91cc03da90c55
* Add @TransitionRes for transition resource integersTor Norbye2015-03-131-2/+6
| | | | Change-Id: I37f523282156c2f87c4d961167d6a980d5f6e34c
* API Review: Improve javadoc.George Mount2014-09-051-2/+2
| | | | | | | Bug 17189781 Also rename PatternMotion to PatternPathMotion Change-Id: I1c4dcbdd65e33cf9de1504277e31f9f7ede0380d
* Adds ScrollBounds to the Transition frameworkPaul Soulos2014-07-221-0/+2
| | | | Change-Id: If22ab5162737f2d109e5eaf407a735523a146b7f
* Remove modified APIsGeorge Mount2014-07-111-2/+0
| | | | | | | viewName was changed to transitionName and MoveImage was replaced with ChangeImageTransform + ChangeBounds. Change-Id: I5e0b0250ef3c926d1c3de212de3a5e1503e89b86
* Add curved motion to Transitions.George Mount2014-06-301-175/+87
| | | | | | | | | | 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
* Merge "Don't use overlay to transition ImageViews."George Mount2014-06-271-0/+3
|\
| * Don't use overlay to transition ImageViews.George Mount2014-06-251-0/+3
| | | | | | | | | | | | | | | | | | | | | | 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
* | Add IN/OUT flag for all Visibility transitions.George Mount2014-06-261-0/+10
| | | | | | | | | | | | Bug 15758206 Change-Id: If9b1871117a6808c87adc84ab9215b913ebd2704
* | Merge "Allow custom transitions from XML."George Mount2014-06-251-0/+25
|\ \ | |/ |/|
| * Allow custom transitions from XML.George Mount2014-06-191-0/+25
| | | | | | | | | | | | Bug 15699798 Change-Id: I841289a72d7c08bb24b3e18380c79ba7960f9b22
* | Revert "Revert "API Review: Change View viewName attribute to transitionName.""George Mount2014-06-231-11/+12
| | | | | | | | | | | | This reverts commit 1bdfbc68e22a64215ab8fa3e3d17676513546997. Change-Id: Ie3fdf53b33cb2f61c1878055940f52ed9dfc8b08
* | Revert "API Review: Change View viewName attribute to transitionName."John Reck2014-06-231-12/+11
| | | | | | | | | | | | This reverts commit f1b1adf51b2a84e0ac83685812c7e8d86590af12. Change-Id: I0e49aeed84f2a548e272a59f4e13c3fb74c2bfd9
* | API Review: Change View viewName attribute to transitionName.George Mount2014-06-201-11/+12
|/ | | | | | Bug 15548520 Change-Id: I4009458d83dbffb20ff0100aaa42eea44d943378
* API review: Constants to Gravity and Epicenter.George Mount2014-06-051-1/+2
| | | | | | | | | Bug 15432037 Constants for LEFT, RIGHT, TOP, BOTTOM moved to using Gravity. Epicenter method name changed. Change-Id: If226613794623fd50fdaf8fc61b0020d17628f68
* Allow changing order of matching Views in Transitions.George Mount2014-05-141-0/+37
| | | | | | Bug 14899804 Change-Id: I13c080141fce6be8430d540e3c42d40a445bb224
* Add view name to Transition matching.George Mount2014-05-131-0/+9
| | | | | | Bug 14625214 Change-Id: Ia1b21e6bd0ea4892b504746e582aeb175e0f0506
* Add mechanism for Transitions to target a class.George Mount2014-04-291-13/+15
| | | | | | | | | | | 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
* Add Transform and ClipBounds Transitions.George Mount2014-04-291-0/+6
| | | | | | | | 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
* Add ability to exclude Views in transition XML.George Mount2014-04-291-8/+18
| | | | | | Bug 14259955 Change-Id: I47bb10c530c9fec8910ddd96156fc38d6027e1f6
* Split Activity Transitions out of PhoneWindow.George Mount2014-04-171-8/+4
| | | | | | | | Bug 13622834 Made it possible to use shared elements without making Views invisible. Change-Id: I1e85c6bc19e634a9af225ad7f0309b4f003ea462
* Add Transitions useful for Activity transitions.George Mount2014-04-071-2/+16
| | | | | | | | | 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
* Change Activity Scene Transitions to be more automatic redo.George Mount2014-02-261-31/+12
| | | | | | | | | This reverts commit 206e30cd93afe3eb72ec94178324417db5424ed2 along with removing the additional startActivity* methods and replaces them with ActivityOptions makeSceneTransitionAnimation methods. Change-Id: I52bec31ae3c4cea6d549810ae5a7acd8aea176d8
* Revert "Change Activity Scene Transitions to be more automatic."George Mount2014-02-261-12/+31
| | | | | | This reverts commit f10587faadb9080a7bf9991cbe04bac5525da482. Change-Id: I2785a3d2d6b667cad6d61dcbbc1c624161735fa4
* Change Activity Scene Transitions to be more automatic.George Mount2014-02-251-31/+12
| | | | | | | | | | | | 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
* Add support for cross-activity scenes and transitionsAdam Powell2013-12-051-4/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Fix leak in TransitionInflaterChet Haase2013-10-311-17/+1
| | | | | | | | | | | | A static map in TransitionInflater keyed off of Context instances, which could cause contexts/activities to leak over time. This fix removes that map and simply creates a new inflater each time. The savings of the cached inflater was minimal an unnecessary, and the intended sharing is in the context embedded in the inflater anyway. Issue #11436919 leak in TransitionInflator Change-Id: Ic05ca47f57723bd572bb6143df4035d66eedf5ad
* Fix resource-loading code for TransitionSetChet Haase2013-10-061-1/+1
| | | | | | | | | | | The inflation code in TransitionInflater was using the wrong tag ("set") for TransitionSet. This fix corrects that problem (changing it to "transitionSet") and documents the correct tag in the TransitionSet javadocs. Issue #11085279 Transitions: transition sets loaded from resources don't work Change-Id: I8aaea9f31bbe368cffcca63d4eb6a5ec06c3ce7b
* Add exclude() methods to TransitionChet Haase2013-09-111-1/+1
| | | | | | | | | | | | | | | It would be useful for a transition to declare not just which targets it wants to be run on, but also which targets it wants to avoid. For example, you may not want to animate the items of a ListView, or some other specific target in the view hierarchy. This change adds various exclude*() methods which make it possible to alter a transition to automatically ignore specific views, ids, or classes in the hierarchy. Issue #10692794 Transitions: Need API for excluding targets Change-Id: If38025cdbee537a545e5a4268cbbd763af4622c5
* Transition API changes from API council recommendationsChet Haase2013-09-041-0/+327
Issue #10460684 KLP API Review: android.view.transition and android.animation Issue #10570740 Transitions: inflate transition targets from xml Change-Id: I7a3f6d3aece2fcafc5efd555d033f79e86635c98