fixed jank on activity close exit with better alpha interpolation
remove zoom animation from fragment close and open transitions. they are now just cross fades remove zAdjustment property from animatorSet Change-Id: I8425f745da2d93948ba8b6fc12c80b3d82c6213c
This commit is contained in:
@@ -20,13 +20,13 @@
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shareInterpolator="false" android:zAdjustment="top">
|
||||
<alpha android:fromAlpha="1.0" android:toAlpha="0.0"
|
||||
android:interpolator="@interpolator/accelerate_quart"
|
||||
android:interpolator="@interpolator/linear"
|
||||
android:fillEnabled="true"
|
||||
android:fillBefore="false" android:fillAfter="true"
|
||||
android:startOffset="100"
|
||||
android:duration="150"/>
|
||||
<translate android:fromYDelta="0%" android:toYDelta="5%"
|
||||
<translate android:fromYDelta="0%" android:toYDelta="8%"
|
||||
android:fillEnabled="true" android:fillBefore="true" android:fillAfter="true"
|
||||
android:interpolator="@interpolator/accelerate_quint"
|
||||
android:interpolator="@interpolator/accelerate_quart"
|
||||
android:duration="250"/>
|
||||
</set>
|
||||
@@ -13,13 +13,14 @@
|
||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
** See the License for the specific language governing permissions and
|
||||
** limitations under the License.
|
||||
** limitations under the License.
|
||||
*/
|
||||
-->
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android" android:zAdjustment="normal">
|
||||
<objectAnimator
|
||||
android:interpolator="@interpolator/decelerate_quad"
|
||||
android:valueFrom="0.0" android:valueTo="1.0"
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<objectAnimator
|
||||
android:interpolator="@interpolator/decelerate_cubic"
|
||||
android:valueFrom="0"
|
||||
android:valueTo="1"
|
||||
android:valueType="floatType"
|
||||
android:propertyName="alpha"
|
||||
android:duration="300"/>
|
||||
|
||||
@@ -13,25 +13,14 @@
|
||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
** See the License for the specific language governing permissions and
|
||||
** limitations under the License.
|
||||
** limitations under the License.
|
||||
*/
|
||||
-->
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android" android:zAdjustment="top">
|
||||
<objectAnimator
|
||||
android:interpolator="@interpolator/decelerate_quad"
|
||||
android:valueFrom="1.0" android:valueTo="0.8"
|
||||
android:valueType="floatType"
|
||||
android:propertyName="scaleY"
|
||||
android:duration="300"/>
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<objectAnimator
|
||||
android:interpolator="@interpolator/decelerate_quad"
|
||||
android:valueFrom="1.0" android:valueTo="0.8"
|
||||
android:valueType="floatType"
|
||||
android:propertyName="scaleX"
|
||||
android:duration="300"/>
|
||||
<objectAnimator
|
||||
android:interpolator="@interpolator/decelerate_quad"
|
||||
android:valueFrom="1.0" android:valueTo="0.0"
|
||||
android:interpolator="@interpolator/decelerate_cubic"
|
||||
android:valueFrom="1"
|
||||
android:valueTo="0"
|
||||
android:valueType="floatType"
|
||||
android:propertyName="alpha"
|
||||
android:duration="300"/>
|
||||
|
||||
@@ -16,8 +16,7 @@
|
||||
** limitations under the License.
|
||||
*/
|
||||
-->
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:zAdjustment="top">
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<objectAnimator
|
||||
android:interpolator="@interpolator/decelerate_cubic"
|
||||
android:valueFrom="0"
|
||||
|
||||
@@ -16,8 +16,7 @@
|
||||
** limitations under the License.
|
||||
*/
|
||||
-->
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:zAdjustment="normal">
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<objectAnimator
|
||||
android:interpolator="@interpolator/decelerate_cubic"
|
||||
android:valueFrom="1"
|
||||
|
||||
@@ -13,25 +13,14 @@
|
||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
** See the License for the specific language governing permissions and
|
||||
** limitations under the License.
|
||||
** limitations under the License.
|
||||
*/
|
||||
-->
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<objectAnimator
|
||||
android:interpolator="@interpolator/decelerate_cubic"
|
||||
android:valueFrom="0.95" android:valueTo="1.0"
|
||||
android:valueType="floatType"
|
||||
android:propertyName="scaleY"
|
||||
android:duration="300"/>
|
||||
<objectAnimator
|
||||
android:interpolator="@interpolator/decelerate_cubic"
|
||||
android:valueFrom="0.95" android:valueTo="1.0"
|
||||
android:valueType="floatType"
|
||||
android:propertyName="scaleX"
|
||||
android:duration="300"/>
|
||||
<objectAnimator
|
||||
android:interpolator="@interpolator/decelerate_cubic"
|
||||
android:valueFrom="0.0" android:valueTo="1.0"
|
||||
android:valueFrom="0"
|
||||
android:valueTo="1"
|
||||
android:valueType="floatType"
|
||||
android:propertyName="alpha"
|
||||
android:duration="300"/>
|
||||
|
||||
@@ -13,13 +13,14 @@
|
||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
** See the License for the specific language governing permissions and
|
||||
** limitations under the License.
|
||||
** limitations under the License.
|
||||
*/
|
||||
-->
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<objectAnimator
|
||||
<objectAnimator
|
||||
android:interpolator="@interpolator/decelerate_cubic"
|
||||
android:valueFrom="1.0" android:valueTo="0.0"
|
||||
android:valueFrom="1"
|
||||
android:valueTo="0"
|
||||
android:valueType="floatType"
|
||||
android:propertyName="alpha"
|
||||
android:duration="300"/>
|
||||
|
||||
Reference in New Issue
Block a user