使android动画平滑
我正在做一些动画的飞溅活动 背景图像(640x425,58.4KB,JPG)在1500毫秒内被稍微放大 另一幅图像(300x300,20.3KB,PNG)在等待750ms后的750ms内逐渐淡入 第一次运行时,动画是平滑的 但是,如果重复执行,则动画会滞后 我的手机是三星GALAXY Note 5 这是我的密码 AndroidMenifest.xml使android动画平滑,android,android-studio,animation,Android,Android Studio,Animation,我正在做一些动画的飞溅活动 背景图像(640x425,58.4KB,JPG)在1500毫秒内被稍微放大 另一幅图像(300x300,20.3KB,PNG)在等待750ms后的750ms内逐渐淡入 第一次运行时,动画是平滑的 但是,如果重复执行,则动画会滞后 我的手机是三星GALAXY Note 5 这是我的密码 AndroidMenifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name=".SplashActivity"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
</activity>
</application>
</manifest>
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:fillAfter="true">
<alpha
android:startOffset="750"
android:duration="750"
android:fromAlpha="0"
android:toAlpha="1"/>
</set>
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:fillAfter="true">
<scale
android:duration="@integer/splash_animation_duration"
android:pivotX="50%"
android:pivotY="50%"
android:fromXScale="1"
android:fromYScale="1"
android:toXScale="1.05"
android:toYScale="1.05" />
</set>
淡入.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name=".SplashActivity"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
</activity>
</application>
</manifest>
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:fillAfter="true">
<alpha
android:startOffset="750"
android:duration="750"
android:fromAlpha="0"
android:toAlpha="1"/>
</set>
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:fillAfter="true">
<scale
android:duration="@integer/splash_animation_duration"
android:pivotX="50%"
android:pivotY="50%"
android:fromXScale="1"
android:fromYScale="1"
android:toXScale="1.05"
android:toYScale="1.05" />
</set>
放大.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name=".SplashActivity"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
</activity>
</application>
</manifest>
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:fillAfter="true">
<alpha
android:startOffset="750"
android:duration="750"
android:fromAlpha="0"
android:toAlpha="1"/>
</set>
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:fillAfter="true">
<scale
android:duration="@integer/splash_animation_duration"
android:pivotX="50%"
android:pivotY="50%"
android:fromXScale="1"
android:fromYScale="1"
android:toXScale="1.05"
android:toYScale="1.05" />
</set>
使您的持续时间小于750。就300吧