summaryrefslogtreecommitdiff
path: root/core/java/android/transition/ChangeBounds.java
Commit message (Collapse)AuthorAgeFilesLines
* Use new UnsupportedAppUsage annotation.Artur Satayev2020-01-071-1/+1
| | | | | | | | Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I288969b0c22fa3a63bc2e71bb5009fe4a927e154
* Made View.setLeftTopRightBottom() publicAndrey Kulikov2018-11-291-2/+3
| | | | | | | | | | | It will allow to call this method in AndroidX Transition without reflection. ChangeBounds#BOTTOM_RIGHT_ONLY_PROPERTY,POSITION_PROPERTY are restricted now as well as developers can just use setLeftTopRightBottom method instead (it was used as a performance optimization in third-party transitions backport) Bug: 117521189 Bug: 117521197 Bug: 117521053 Test: new test added for the method Change-Id: I0a29bc8cf0b3357e49f6be14270993a21a6dfeee
* Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-301-0/+3
| | | | | | | | | | | | | | | For all remaining unannotated code. This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: I67c8b71ea535ebffb10bf577948bd4ccb8ca069d
* Don't clear focus during transition animationsEvan Rosky2018-04-231-32/+32
| | | | | | | | | | If a view is suppressing layout, it is probably part of a transition animation. In this case, we don't want to defocus a focused view which may eventually have a size. Bug: 78302781 Test: issue in bug is resolved. Transition CTS tests still pass Change-Id: I983f41bcd68056d2150d4db29c781b63a2c321c2
* Ensure bounds are updated together.George Mount2017-04-071-8/+8
| | | | | | | | | | | Bug 37156683 The animator was setting the value twice on the first run, so the bounds was being set improperly as the top/left was being set from a different frame than the bottom/right. Test: I534cc4d7534cff1206ea8c2b222e0c0852fc0e9c Change-Id: I6fb047d2fa4d0ed0db3b44107f9815a65f1f2676
* Fix import statement in view|transition|animation packages.Aurimas Liutikas2016-10-121-5/+4
| | | | | | | This change also remove trailing whitespace. Test: code still compiles Change-Id: I7eff4546320d67d2bae58d31bad0625ea0791b8f
* Remove TransitionListener after transition completes.George Mount2016-06-141-0/+1
| | | | | | Bug 22232371 Change-Id: I1ba6f8742792ff00996b7fdaa892d5e1388ef61c
* Add missing @Deprecated annotations.Aurimas Liutikas2016-05-241-0/+1
| | | | | | | Add missing @Deprecated annotations for methods with @deprecated tag in javadoc. Change-Id: I35b78ccb97832d86b914c21a300444ba29e33844
* Set the bounds on the drawable for ChangeBounds reparenting.George Mount2015-10-191-9/+10
| | | | | | | | | Bug 24993183 The bounds for the drawable weren't being set, so the drawable was never drawn to the correct size. Change-Id: I992951f28ee6fac2ce8752d2dc0e23f51d3cf584
* Add resizeClip attribute to ChangeBounds.George Mount2014-10-241-110/+208
| | | | | | | | | | Bug 17765948 Added the XML attribute for the resizeClip property of ChangeBounds. Also updated support for resizing a view using its clip bounds and position to fix the TODO. Change-Id: I358d07d6a28fed4b7f39f9ccb9d89b9325f64239
* Use one method to change bounds in ChangeBounds.George Mount2014-10-231-66/+70
| | | | | | | | | Bug 17936593 Instead of calling setLeft(), setTop(), setRight(), setBottom() separately, make one call that does all at the same time. Change-Id: I986274f3a98b3136e71204501ffc272986ad31dd
* Allow using setLeft/Top/Right/Bottom to control ChangeBounds.George Mount2014-10-101-1/+1
| | | | | | Bug 17938614 Change-Id: Ia341fdd63ab57ec16a3de6349b7eb07fdc0a48ae
* Avoid changeBounds animations on Views that are not yet laidoutChris Craik2014-10-061-7/+10
| | | | | | | | | bug:17683930 This means that GONE views with empty bounds don't trigger ChangeBounds animations the first time they're shown. Change-Id: I6503c5b0a790d3d31f7566fab27a0b12c5f61f26
* Use offsetLeftAndRight and offsetTopAndBottom in ChangeBounds.George Mount2014-08-281-18/+74
| | | | | | | | | Bug 17015836 When the size does not change, use offsetLeftAndRight and offsetTopAndBottom to improve performance. Change-Id: I3e70c783321346bb98867ec60bd899c39293c9e7
* Add Parent Change to ChangeTransformDake Gu2014-08-211-0/+2
| | | | | | | | | Bug 16460123 Modified ChangeTransform to support any pivot changes. Modified ChangeTransform to support changes between parents. Change-Id: I6374890dab9f3d795f334b951bdb9d51d434b8ee
* Fixed ChangeBounds matching against the wrong View.George Mount2014-08-191-12/+19
| | | | | | | | ChangeBounds must ensure that its parents match to use reparent, but it used instance and ID matching. Matching can now be done in several ways and that is insufficient. Change-Id: Ic0432cd06549e4dc9ba49f33b0a6a42082e29dc1
* Allow changing bounds to and from a zero-sized bounds.George Mount2014-07-281-1/+1
| | | | | | Bug 14590183 Change-Id: I596cb384198a6f7de14afed0d78711f127d3511e
* Adds ScrollBounds to the Transition frameworkPaul Soulos2014-07-221-14/+4
| | | | Change-Id: If22ab5162737f2d109e5eaf407a735523a146b7f
* Don't change View visibility during activity transitions.George Mount2014-07-101-2/+3
| | | | | | | | | | 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
* Add curved motion to Transitions.George Mount2014-06-301-39/+73
| | | | | | | | | | 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
* Transition API changes from API council recommendationsChet Haase2013-09-041-0/+310
Issue #10460684 KLP API Review: android.view.transition and android.animation Issue #10570740 Transitions: inflate transition targets from xml Change-Id: I7a3f6d3aece2fcafc5efd555d033f79e86635c98