├── .gitignore ├── .idea ├── compiler.xml ├── copyright │ └── profiles_settings.xml ├── encodings.xml ├── gradle.xml ├── misc.xml ├── modules.xml ├── runConfigurations.xml └── vcs.xml ├── app ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── org │ │ └── wangchenlong │ │ └── animationplayer │ │ └── ExampleInstrumentedTest.java │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── org │ │ │ └── wangchenlong │ │ │ └── animationplayer │ │ │ ├── MainActivity.java │ │ │ ├── Rotate3dAnimation.java │ │ │ └── Utils.java │ └── res │ │ ├── anim │ │ ├── anim_all.xml │ │ ├── anim_alpha.xml │ │ ├── anim_rotate.xml │ │ ├── anim_scale.xml │ │ └── anim_translate.xml │ │ ├── drawable-nodpi │ │ ├── jessica_square.png │ │ ├── kim_square.png │ │ ├── seo_square.png │ │ ├── soo_square.png │ │ ├── sunny_square.png │ │ ├── taeyeon_square.png │ │ ├── tiffany_square.png │ │ ├── yoona_square.png │ │ └── yuri_square.png │ │ ├── drawable │ │ └── anim_images.xml │ │ ├── layout │ │ ├── activity_main.xml │ │ └── item_anim.xml │ │ ├── mipmap-hdpi │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xxxhdpi │ │ └── ic_launcher.png │ │ ├── values-w820dp │ │ └── dimens.xml │ │ └── values │ │ ├── colors.xml │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml │ └── test │ └── java │ └── org │ └── wangchenlong │ └── animationplayer │ └── ExampleUnitTest.java ├── build.gradle ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .externalNativeBuild 10 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | 14 | 26 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | Android 46 | 47 | 48 | Android Lint 49 | 50 | 51 | Java 52 | 53 | 54 | Java language level migration aidsJava 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 76 | 77 | 78 | 79 | 80 | 1.8 81 | 82 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 98 | 99 | 100 | 101 | 102 | 103 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 25 5 | buildToolsVersion "25.0.2" 6 | defaultConfig { 7 | applicationId "org.wangchenlong.animationplayer" 8 | minSdkVersion 16 9 | targetSdkVersion 25 10 | versionCode 1 11 | versionName "1.0" 12 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 25 | exclude group: 'com.android.support', module: 'support-annotations' 26 | }) 27 | compile 'com.android.support:appcompat-v7:25.1.0' 28 | testCompile 'junit:junit:4.12' 29 | 30 | compile 'com.android.support:recyclerview-v7:25.1.0' 31 | 32 | compile 'com.jakewharton:butterknife:8.4.0' 33 | annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0' 34 | } 35 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/wangchenlong/Installations/android-sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /app/src/androidTest/java/org/wangchenlong/animationplayer/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package org.wangchenlong.animationplayer; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumentation test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() throws Exception { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("org.wangchenlong.animationplayer", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /app/src/main/java/org/wangchenlong/animationplayer/MainActivity.java: -------------------------------------------------------------------------------- 1 | package org.wangchenlong.animationplayer; 2 | 3 | import android.animation.IntEvaluator; 4 | import android.animation.ObjectAnimator; 5 | import android.animation.ValueAnimator; 6 | import android.content.Context; 7 | import android.graphics.drawable.AnimationDrawable; 8 | import android.os.Bundle; 9 | import android.support.annotation.DrawableRes; 10 | import android.support.v7.app.AppCompatActivity; 11 | import android.support.v7.widget.GridLayoutManager; 12 | import android.support.v7.widget.RecyclerView; 13 | import android.view.LayoutInflater; 14 | import android.view.View; 15 | import android.view.ViewGroup; 16 | import android.view.animation.Animation; 17 | import android.view.animation.AnimationUtils; 18 | import android.widget.Button; 19 | import android.widget.ImageView; 20 | 21 | import java.util.ArrayList; 22 | 23 | import butterknife.BindView; 24 | import butterknife.ButterKnife; 25 | 26 | public class MainActivity extends AppCompatActivity { 27 | @BindView(R.id.main_rv_grid) RecyclerView mRvGrid; 28 | 29 | private Context mContext; 30 | private ArrayList mAnimations; 31 | private @DrawableRes int[] mImages = { 32 | R.drawable.jessica_square, R.drawable.tiffany_square, 33 | R.drawable.taeyeon_square, R.drawable.yoona_square, 34 | R.drawable.yuri_square, R.drawable.soo_square, 35 | R.drawable.seo_square, R.drawable.kim_square, 36 | R.drawable.sunny_square 37 | }; 38 | private @DrawableRes int mFrames = R.drawable.anim_images; // 帧动画图像 39 | private String[] mTexts = { 40 | "平移", "缩放", "旋转", "透明", "混合", 41 | "自定", "帧动", "Wrapper", "差值" 42 | }; 43 | 44 | @Override protected void onCreate(Bundle savedInstanceState) { 45 | super.onCreate(savedInstanceState); 46 | setContentView(R.layout.activity_main); 47 | ButterKnife.bind(this); // 绑定布局ID 48 | 49 | mContext = getApplicationContext(); // 上下文 50 | 51 | initAnimations(mContext); // 创建动画组合 52 | 53 | mRvGrid.setLayoutManager(new GridLayoutManager(mContext, 2)); // 每行两列 54 | mRvGrid.setAdapter(new GridAdapter(mContext, mAnimations, mFrames, mTexts, mImages)); // 设置适配器 55 | } 56 | 57 | private void initAnimations(Context context) { 58 | mAnimations = new ArrayList<>(); 59 | mAnimations.add(AnimationUtils.loadAnimation(context, R.anim.anim_translate)); // 平移动画 60 | mAnimations.add(AnimationUtils.loadAnimation(context, R.anim.anim_scale)); // 缩放动画 61 | mAnimations.add(AnimationUtils.loadAnimation(context, R.anim.anim_rotate)); // 旋转动画 62 | mAnimations.add(AnimationUtils.loadAnimation(context, R.anim.anim_alpha)); // 透明动画 63 | mAnimations.add(AnimationUtils.loadAnimation(context, R.anim.anim_all)); // 动画合集 64 | 65 | final Rotate3dAnimation anim = new Rotate3dAnimation(0.0f, 720.0f, 100.0f, 100.0f, 0.0f, false); 66 | anim.setDuration(2000); 67 | mAnimations.add(anim); // 自定义动画 68 | } 69 | 70 | private static class GridAdapter extends RecyclerView.Adapter { 71 | 72 | private ArrayList mAnimations; 73 | private @DrawableRes int mFrame; 74 | private String[] mTexts; 75 | private @DrawableRes int[] mImages; 76 | 77 | private int mLastPosition = -1; 78 | private Context mContext; 79 | 80 | public GridAdapter(Context context, 81 | ArrayList animations, @DrawableRes int frame, 82 | String[] texts, @DrawableRes int[] images) { 83 | mContext = context; 84 | mAnimations = animations; 85 | mFrame = frame; 86 | mTexts = texts; 87 | mImages = images; 88 | } 89 | 90 | @Override public GridViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { 91 | View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_anim, parent, false); 92 | return new GridViewHolder(view); 93 | } 94 | 95 | @Override public void onBindViewHolder(final GridViewHolder holder, final int position) { 96 | setAnimation(holder.getContainer(), position); // 设置左侧滑动的动画效果 97 | 98 | holder.getImageView().setImageResource(mImages[position]); 99 | holder.getButton().setText(mTexts[position]); 100 | 101 | switch (position) { 102 | case 6: // 使用帧动画 103 | holder.getImageView().setImageResource(mFrame); 104 | holder.getButton().setOnClickListener(new View.OnClickListener() { 105 | @Override public void onClick(View v) { 106 | ((AnimationDrawable) holder.getImageView().getDrawable()).start(); 107 | } 108 | }); 109 | break; 110 | case 7: // 使用Wrapper属性动画 111 | performWrapperAnimation(holder.getImageView(), 0, Utils.dp2px(mContext, 120)); 112 | holder.getButton().setOnClickListener(new View.OnClickListener() { 113 | @Override public void onClick(View v) { 114 | performWrapperAnimation(holder.getImageView(), 0, Utils.dp2px(mContext, 120)); 115 | } 116 | }); 117 | break; 118 | case 8: // 使用差值属性动画 119 | performListenerAnimation(holder.getImageView(), 0, Utils.dp2px(mContext, 120)); 120 | holder.getButton().setOnClickListener(new View.OnClickListener() { 121 | @Override public void onClick(View v) { 122 | performListenerAnimation(holder.getImageView(), 0, Utils.dp2px(mContext, 120)); 123 | } 124 | }); 125 | break; 126 | default: 127 | holder.getImageView().setAnimation(mAnimations.get(position)); 128 | holder.getButton().setOnClickListener(new View.OnClickListener() { 129 | @Override public void onClick(View v) { 130 | holder.getImageView().startAnimation(mAnimations.get(position)); 131 | } 132 | }); 133 | break; 134 | } 135 | } 136 | 137 | /** 138 | * RecyclerList设置每一项的加载动画 139 | * 140 | * @param viewToAnimate 项目视图 141 | * @param position 位置 142 | */ 143 | private void setAnimation(View viewToAnimate, int position) { 144 | if (position > mLastPosition || mLastPosition == -1) { 145 | Animation animation = AnimationUtils.loadAnimation(mContext, android.R.anim.slide_in_left); 146 | animation.setDuration(3000); 147 | viewToAnimate.startAnimation(animation); 148 | mLastPosition = position; 149 | } 150 | } 151 | 152 | /** 153 | * 通过差值执行属性动画 154 | * 155 | * @param view 目标视图 156 | * @param start 起始宽度 157 | * @param end 终止宽度 158 | */ 159 | private void performListenerAnimation(final View view, final int start, final int end) { 160 | ValueAnimator valueAnimator = ValueAnimator.ofInt(1, 100); 161 | valueAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { 162 | // 持有一个IntEvaluator对象,方便下面估值的时候使用 163 | private IntEvaluator mEvaluator = new IntEvaluator(); 164 | 165 | @Override 166 | public void onAnimationUpdate(ValueAnimator animator) { 167 | // 获得当前动画的进度值,整型,1-100之间 168 | int currentValue = (Integer) animator.getAnimatedValue(); 169 | 170 | // 获得当前进度占整个动画过程的比例,浮点型,0-1之间 171 | float fraction = animator.getAnimatedFraction(); 172 | // 直接调用整型估值器通过比例计算出宽度,然后再设给Button 173 | view.getLayoutParams().width = mEvaluator.evaluate(fraction, start, end); 174 | view.requestLayout(); 175 | } 176 | }); 177 | valueAnimator.setDuration(2000).start(); 178 | } 179 | 180 | /** 181 | * 通过Wrapper实现属性动画 182 | * 183 | * @param view 目标视图 184 | * @param start 起始宽度 185 | * @param end 终止宽度 186 | */ 187 | private void performWrapperAnimation(final View view, final int start, final int end) { 188 | ViewWrapper vw = new ViewWrapper(view); 189 | ObjectAnimator.ofInt(vw, "width", start, end).setDuration(2000).start(); // 启动动画 190 | } 191 | 192 | // 视图包装, 提供Width的get和set方法 193 | private static class ViewWrapper { 194 | private View mView; 195 | 196 | public ViewWrapper(View view) { 197 | mView = view; 198 | } 199 | 200 | @SuppressWarnings("unused") 201 | public int getWidth() { 202 | return mView.getLayoutParams().width; 203 | } 204 | 205 | @SuppressWarnings("unused") 206 | public void setWidth(int width) { 207 | mView.getLayoutParams().width = width; 208 | mView.requestLayout(); 209 | } 210 | } 211 | 212 | @Override public int getItemCount() { 213 | return mTexts.length; 214 | } 215 | } 216 | 217 | // 列表适配器的ViewHolder 218 | private static class GridViewHolder extends RecyclerView.ViewHolder { 219 | private ImageView mImageView; 220 | private Button mButton; 221 | private View mContainer; 222 | 223 | public GridViewHolder(View itemView) { 224 | super(itemView); 225 | mContainer = itemView; 226 | mButton = (Button) itemView.findViewById(R.id.item_b_start); 227 | mImageView = (ImageView) itemView.findViewById(R.id.item_iv_img); 228 | } 229 | 230 | public View getContainer() { 231 | return mContainer; 232 | } 233 | 234 | public ImageView getImageView() { 235 | return mImageView; 236 | } 237 | 238 | public Button getButton() { 239 | return mButton; 240 | } 241 | } 242 | } 243 | -------------------------------------------------------------------------------- /app/src/main/java/org/wangchenlong/animationplayer/Rotate3dAnimation.java: -------------------------------------------------------------------------------- 1 | package org.wangchenlong.animationplayer; 2 | 3 | import android.graphics.Camera; 4 | import android.graphics.Matrix; 5 | import android.view.animation.Animation; 6 | import android.view.animation.Transformation; 7 | 8 | /** 9 | * 自定义的动画类 10 | *

11 | * Created by wangchenlong on 17/1/3. 12 | */ 13 | public class Rotate3dAnimation extends Animation { 14 | private final float mFromDegrees; 15 | private final float mToDegrees; 16 | private final float mCenterX; 17 | private final float mCenterY; 18 | private final float mDepthZ; 19 | private final boolean mReverse; 20 | private Camera mCamera; 21 | 22 | public Rotate3dAnimation( 23 | float fromDegrees, float toDegrees, 24 | float centerX, float centerY, 25 | float depthZ, boolean reverse) { 26 | mFromDegrees = fromDegrees; // 起始角度 27 | mToDegrees = toDegrees; // 目标角度 28 | mCenterX = centerX; // 旋转中心的X轴 29 | mCenterY = centerY; // 旋转中心的Y轴 30 | mDepthZ = depthZ; // 深度Z轴 31 | mReverse = reverse; // 是否反转 32 | } 33 | 34 | @Override public void initialize(int width, int height, int parentWidth, int parentHeight) { 35 | super.initialize(width, height, parentWidth, parentHeight); 36 | mCamera = new Camera(); 37 | } 38 | 39 | @Override protected void applyTransformation(float interpolatedTime, Transformation t) { 40 | final float fromDegrees = mFromDegrees; 41 | float degrees = fromDegrees + ((mToDegrees - fromDegrees) * interpolatedTime); // 结尾度数 42 | 43 | // 中心点 44 | final float centerX = mCenterX; 45 | final float centerY = mCenterY; 46 | 47 | final Camera camera = mCamera; 48 | final Matrix matrix = t.getMatrix(); 49 | 50 | camera.save(); // 照相机 51 | 52 | // Z轴平移 53 | if (mReverse) { 54 | camera.translate(0.0f, 0.0f, mDepthZ * interpolatedTime); 55 | } else { 56 | camera.translate(0.0f, 0.0f, mDepthZ * (1.0f - interpolatedTime)); 57 | } 58 | 59 | camera.rotateY(degrees); // Y轴旋转 60 | camera.getMatrix(matrix); 61 | camera.restore(); 62 | 63 | // View的中心点进行旋转 64 | matrix.preTranslate(-centerX, -centerY); 65 | matrix.postTranslate(centerX, centerX); 66 | 67 | super.applyTransformation(interpolatedTime, t); 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /app/src/main/java/org/wangchenlong/animationplayer/Utils.java: -------------------------------------------------------------------------------- 1 | package org.wangchenlong.animationplayer; 2 | 3 | import android.content.Context; 4 | 5 | /** 6 | * 工具类 7 | *

8 | * Created by wangchenlong on 17/1/3. 9 | */ 10 | public class Utils { 11 | public static int dp2px(Context context, int dp) { 12 | final float scale = context.getResources().getDisplayMetrics().density; 13 | return (int) (dp * scale + 0.5f); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /app/src/main/res/anim/anim_all.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 11 | 12 | 18 | 19 | 20 | 26 | 27 | 28 | 32 | -------------------------------------------------------------------------------- /app/src/main/res/anim/anim_alpha.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/anim/anim_rotate.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/anim/anim_scale.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/anim/anim_translate.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/jessica_square.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpikeKing/AnimationPlayer/a06d58a006622bc17f0ff2abf28bdb2a1fac6fb3/app/src/main/res/drawable-nodpi/jessica_square.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/kim_square.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpikeKing/AnimationPlayer/a06d58a006622bc17f0ff2abf28bdb2a1fac6fb3/app/src/main/res/drawable-nodpi/kim_square.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/seo_square.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpikeKing/AnimationPlayer/a06d58a006622bc17f0ff2abf28bdb2a1fac6fb3/app/src/main/res/drawable-nodpi/seo_square.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/soo_square.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpikeKing/AnimationPlayer/a06d58a006622bc17f0ff2abf28bdb2a1fac6fb3/app/src/main/res/drawable-nodpi/soo_square.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/sunny_square.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpikeKing/AnimationPlayer/a06d58a006622bc17f0ff2abf28bdb2a1fac6fb3/app/src/main/res/drawable-nodpi/sunny_square.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/taeyeon_square.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpikeKing/AnimationPlayer/a06d58a006622bc17f0ff2abf28bdb2a1fac6fb3/app/src/main/res/drawable-nodpi/taeyeon_square.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/tiffany_square.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpikeKing/AnimationPlayer/a06d58a006622bc17f0ff2abf28bdb2a1fac6fb3/app/src/main/res/drawable-nodpi/tiffany_square.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/yoona_square.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpikeKing/AnimationPlayer/a06d58a006622bc17f0ff2abf28bdb2a1fac6fb3/app/src/main/res/drawable-nodpi/yoona_square.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-nodpi/yuri_square.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SpikeKing/AnimationPlayer/a06d58a006622bc17f0ff2abf28bdb2a1fac6fb3/app/src/main/res/drawable-nodpi/yuri_square.png -------------------------------------------------------------------------------- /app/src/main/res/drawable/anim_images.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 9 | 12 | 15 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 13 | 14 | 15 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /app/src/main/res/layout/item_anim.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | 13 |