am 20edd053: Merge "fixed jank on activity close exit with better alpha interpolation" into lmp-mr1-dev

* commit '20edd0532738e9df72da0a9b6d39d541b9cb1ca9':
  fixed jank on activity close exit with better alpha interpolation
This commit is contained in:
Ari Sachter-Zeltzer
2014-10-28 09:01:39 +00:00
committed by Android Git Automerger
7 changed files with 23 additions and 45 deletions

View File

@@ -20,13 +20,13 @@
<set xmlns:android="http://schemas.android.com/apk/res/android" <set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false" android:zAdjustment="top"> android:shareInterpolator="false" android:zAdjustment="top">
<alpha android:fromAlpha="1.0" android:toAlpha="0.0" <alpha android:fromAlpha="1.0" android:toAlpha="0.0"
android:interpolator="@interpolator/accelerate_quart" android:interpolator="@interpolator/linear"
android:fillEnabled="true" android:fillEnabled="true"
android:fillBefore="false" android:fillAfter="true" android:fillBefore="false" android:fillAfter="true"
android:startOffset="100" android:startOffset="100"
android:duration="150"/> 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:fillEnabled="true" android:fillBefore="true" android:fillAfter="true"
android:interpolator="@interpolator/accelerate_quint" android:interpolator="@interpolator/accelerate_quart"
android:duration="250"/> android:duration="250"/>
</set> </set>

View File

@@ -13,13 +13,14 @@
** distributed under the License is distributed on an "AS IS" BASIS, ** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and ** 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"> <set xmlns:android="http://schemas.android.com/apk/res/android">
<objectAnimator <objectAnimator
android:interpolator="@interpolator/decelerate_quad" android:interpolator="@interpolator/decelerate_cubic"
android:valueFrom="0.0" android:valueTo="1.0" android:valueFrom="0"
android:valueTo="1"
android:valueType="floatType" android:valueType="floatType"
android:propertyName="alpha" android:propertyName="alpha"
android:duration="300"/> android:duration="300"/>

View File

@@ -13,25 +13,14 @@
** distributed under the License is distributed on an "AS IS" BASIS, ** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and ** 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"> <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="scaleY"
android:duration="300"/>
<objectAnimator <objectAnimator
android:interpolator="@interpolator/decelerate_quad" android:interpolator="@interpolator/decelerate_cubic"
android:valueFrom="1.0" android:valueTo="0.8" android:valueFrom="1"
android:valueType="floatType" android:valueTo="0"
android:propertyName="scaleX"
android:duration="300"/>
<objectAnimator
android:interpolator="@interpolator/decelerate_quad"
android:valueFrom="1.0" android:valueTo="0.0"
android:valueType="floatType" android:valueType="floatType"
android:propertyName="alpha" android:propertyName="alpha"
android:duration="300"/> android:duration="300"/>

View File

@@ -16,8 +16,7 @@
** limitations under the License. ** limitations under the License.
*/ */
--> -->
<set xmlns:android="http://schemas.android.com/apk/res/android" <set xmlns:android="http://schemas.android.com/apk/res/android">
android:zAdjustment="top">
<objectAnimator <objectAnimator
android:interpolator="@interpolator/decelerate_cubic" android:interpolator="@interpolator/decelerate_cubic"
android:valueFrom="0" android:valueFrom="0"

View File

@@ -16,8 +16,7 @@
** limitations under the License. ** limitations under the License.
*/ */
--> -->
<set xmlns:android="http://schemas.android.com/apk/res/android" <set xmlns:android="http://schemas.android.com/apk/res/android">
android:zAdjustment="normal">
<objectAnimator <objectAnimator
android:interpolator="@interpolator/decelerate_cubic" android:interpolator="@interpolator/decelerate_cubic"
android:valueFrom="1" android:valueFrom="1"

View File

@@ -13,25 +13,14 @@
** distributed under the License is distributed on an "AS IS" BASIS, ** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and ** 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"> <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 <objectAnimator
android:interpolator="@interpolator/decelerate_cubic" android:interpolator="@interpolator/decelerate_cubic"
android:valueFrom="0.95" android:valueTo="1.0" android:valueFrom="0"
android:valueType="floatType" android:valueTo="1"
android:propertyName="scaleX"
android:duration="300"/>
<objectAnimator
android:interpolator="@interpolator/decelerate_cubic"
android:valueFrom="0.0" android:valueTo="1.0"
android:valueType="floatType" android:valueType="floatType"
android:propertyName="alpha" android:propertyName="alpha"
android:duration="300"/> android:duration="300"/>

View File

@@ -13,13 +13,14 @@
** distributed under the License is distributed on an "AS IS" BASIS, ** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and ** 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"> <set xmlns:android="http://schemas.android.com/apk/res/android">
<objectAnimator <objectAnimator
android:interpolator="@interpolator/decelerate_cubic" android:interpolator="@interpolator/decelerate_cubic"
android:valueFrom="1.0" android:valueTo="0.0" android:valueFrom="1"
android:valueTo="0"
android:valueType="floatType" android:valueType="floatType"
android:propertyName="alpha" android:propertyName="alpha"
android:duration="300"/> android:duration="300"/>