├── settings.gradle ├── Introduction ├── 1.gif ├── 1.png ├── 2.gif ├── 2.png ├── 3.gif ├── demo_qrcode.png └── mtransition_demo.apk ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── app ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── back.png │ │ │ │ ├── icon_1.png │ │ │ │ ├── icon_10.png │ │ │ │ ├── icon_11.png │ │ │ │ ├── icon_12.png │ │ │ │ ├── icon_13.png │ │ │ │ ├── icon_14.png │ │ │ │ ├── icon_15.png │ │ │ │ ├── icon_16.png │ │ │ │ ├── icon_17.png │ │ │ │ ├── icon_18.png │ │ │ │ ├── icon_19.png │ │ │ │ ├── icon_2.png │ │ │ │ ├── icon_20.png │ │ │ │ ├── icon_3.png │ │ │ │ ├── icon_4.png │ │ │ │ ├── icon_5.png │ │ │ │ ├── icon_6.png │ │ │ │ ├── icon_7.png │ │ │ │ ├── icon_8.png │ │ │ │ ├── icon_9.png │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ding.png │ │ │ │ ├── github.jpg │ │ │ │ ├── head0.jpeg │ │ │ │ ├── head1.jpg │ │ │ │ ├── head2.jpeg │ │ │ │ ├── head3.jpeg │ │ │ │ ├── img0.jpeg │ │ │ │ ├── img1.jpeg │ │ │ │ ├── img2.jpeg │ │ │ │ ├── img3.jpeg │ │ │ │ ├── img4.jpg │ │ │ │ ├── menu.png │ │ │ │ ├── star.png │ │ │ │ ├── custom1.jpg │ │ │ │ ├── location.png │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── drawable │ │ │ │ ├── circle_bg.xml │ │ │ │ ├── roundrect.xml │ │ │ │ └── ic_launcher_background.xml │ │ │ ├── layout │ │ │ │ ├── example8.xml │ │ │ │ ├── example9.xml │ │ │ │ ├── example4_1.xml │ │ │ │ ├── example51_detail.xml │ │ │ │ ├── example51_entry.xml │ │ │ │ ├── example41_1.xml │ │ │ │ ├── example6_detail.xml │ │ │ │ ├── example6_entry.xml │ │ │ │ ├── applist_page.xml │ │ │ │ ├── example7_entry.xml │ │ │ │ ├── example7_detail.xml │ │ │ │ ├── app_item_view.xml │ │ │ │ ├── example10_entry.xml │ │ │ │ ├── enter_activity.xml │ │ │ │ └── appdetail_page.xml │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── values │ │ │ │ ├── colors.xml │ │ │ │ ├── dimens.xml │ │ │ │ ├── styles.xml │ │ │ │ ├── datas.xml │ │ │ │ └── strings.xml │ │ │ ├── drawable-v24 │ │ │ │ └── ic_launcher_foreground.xml │ │ │ └── values-en │ │ │ │ └── strings.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── mjun │ │ │ │ └── demo │ │ │ │ ├── example2 │ │ │ │ ├── AppBean.java │ │ │ │ ├── AppListPage.java │ │ │ │ ├── AppDetailPage.java │ │ │ │ ├── Example2DetailActivity.java │ │ │ │ └── Example2EntryActivity.java │ │ │ │ ├── TestActivityAnimtaionActivity.java │ │ │ │ ├── example10 │ │ │ │ ├── com │ │ │ │ │ └── view │ │ │ │ │ │ └── jameson │ │ │ │ │ │ ├── library │ │ │ │ │ │ ├── CardLinearSnapHelper.java │ │ │ │ │ │ ├── SpeedRecyclerView.java │ │ │ │ │ │ └── CardAdapterHelper.java │ │ │ │ │ │ └── util │ │ │ │ │ │ ├── ViewSwitchUtils.java │ │ │ │ │ │ ├── BitmapUtils.java │ │ │ │ │ │ └── BlurBitmapUtils.java │ │ │ │ ├── Example10EntryActivity.java │ │ │ │ └── CardAdapter.java │ │ │ │ ├── model │ │ │ │ └── AppModel.java │ │ │ │ ├── example6 │ │ │ │ ├── CatLottieView.java │ │ │ │ ├── Example6EntryActivity.java │ │ │ │ └── Example6DetailActivity.java │ │ │ │ ├── example7 │ │ │ │ └── Example7EntryActivity.java │ │ │ │ ├── example41 │ │ │ │ ├── Example41EntryActivity1.java │ │ │ │ ├── Example41EntryActivity4.java │ │ │ │ ├── Example41EntryActivity2.java │ │ │ │ └── Example41EntryActivity3.java │ │ │ │ ├── example51 │ │ │ │ ├── Example51EntryActivity.java │ │ │ │ ├── ActionBtn.java │ │ │ │ └── Example51DetailActivity.java │ │ │ │ ├── example4 │ │ │ │ ├── Example4EntryActivity1.java │ │ │ │ ├── Example4EntryActivity4.java │ │ │ │ ├── Example4EntryActivity3.java │ │ │ │ └── Example4EntryActivity2.java │ │ │ │ ├── example8 │ │ │ │ ├── Example8Activity.java │ │ │ │ ├── Fragment2.java │ │ │ │ └── Fragment1.java │ │ │ │ ├── example9 │ │ │ │ ├── Page2.java │ │ │ │ ├── Example9Activity.java │ │ │ │ └── Page1.java │ │ │ │ ├── example3 │ │ │ │ └── Example3DetailActivity.java │ │ │ │ ├── example1 │ │ │ │ ├── Example1DetailActivity.java │ │ │ │ └── Example1EntryActivity.java │ │ │ │ └── example0 │ │ │ │ ├── Example0DetailActivity.java │ │ │ │ └── Example0EntryActivity.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── mjun │ │ │ └── mtransition │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── mjun │ │ └── mtransition │ │ └── ExampleInstrumentedTest.java ├── .gitignore ├── proguard-rules.pro └── build.gradle ├── mtransition ├── src │ ├── main │ │ ├── res │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ └── style.xml │ │ │ └── anim │ │ │ │ └── no_anim.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── mjun │ │ │ └── mtransition │ │ │ ├── anim │ │ │ ├── IAnimFactor.java │ │ │ ├── ScaleXFactor.java │ │ │ ├── ScaleYFactor.java │ │ │ ├── RotateXFactor.java │ │ │ ├── RotateYFactor.java │ │ │ ├── RotateZFactor.java │ │ │ ├── TranslateXFactor.java │ │ │ ├── TranslateYFactor.java │ │ │ ├── AlphaFactor.java │ │ │ └── BaseAnimFactor.java │ │ │ ├── ITransitPrepareListener.java │ │ │ ├── bundle │ │ │ └── MTransitionBundle.java │ │ │ ├── Log.java │ │ │ ├── TransitListenerAdapter.java │ │ │ ├── ITransitional.java │ │ │ ├── OnTransitListener.java │ │ │ ├── MTransitionManager.java │ │ │ ├── view │ │ │ └── CloneView.java │ │ │ └── MTranstionUtil.java │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── mjun │ │ │ └── mtransition │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── mjun │ │ └── mtransition │ │ └── ExampleInstrumentedTest.java ├── .gitignore ├── build.gradle └── proguard-rules.pro ├── .gitignore ├── gradle.properties ├── gradlew.bat └── README_cn.md /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':mtransition' 2 | -------------------------------------------------------------------------------- /Introduction/1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/Introduction/1.gif -------------------------------------------------------------------------------- /Introduction/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/Introduction/1.png -------------------------------------------------------------------------------- /Introduction/2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/Introduction/2.gif -------------------------------------------------------------------------------- /Introduction/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/Introduction/2.png -------------------------------------------------------------------------------- /Introduction/3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/Introduction/3.gif -------------------------------------------------------------------------------- /Introduction/demo_qrcode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/Introduction/demo_qrcode.png -------------------------------------------------------------------------------- /Introduction/mtransition_demo.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/Introduction/mtransition_demo.apk -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xhdpi/back.png -------------------------------------------------------------------------------- /mtransition/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | mtransition 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xhdpi/icon_1.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xhdpi/icon_10.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xhdpi/icon_11.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xhdpi/icon_12.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xhdpi/icon_13.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xhdpi/icon_14.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xhdpi/icon_15.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xhdpi/icon_16.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xhdpi/icon_17.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xhdpi/icon_18.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xhdpi/icon_19.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xhdpi/icon_2.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xhdpi/icon_20.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xhdpi/icon_3.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xhdpi/icon_4.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xhdpi/icon_5.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xhdpi/icon_6.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xhdpi/icon_7.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xhdpi/icon_8.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/icon_9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xhdpi/icon_9.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ding.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xxhdpi/ding.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/github.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xxhdpi/github.jpg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/head0.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xxhdpi/head0.jpeg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/head1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xxhdpi/head1.jpg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/head2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xxhdpi/head2.jpeg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/head3.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xxhdpi/head3.jpeg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/img0.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xxhdpi/img0.jpeg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/img1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xxhdpi/img1.jpeg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/img2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xxhdpi/img2.jpeg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/img3.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xxhdpi/img3.jpeg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/img4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xxhdpi/img4.jpg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xxhdpi/menu.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xxhdpi/star.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/custom1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xxhdpi/custom1.jpg -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/location.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xxhdpi/location.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/HJ-Money/MTransition/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /mtransition/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/circle_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/java/com/mjun/demo/example2/AppBean.java: -------------------------------------------------------------------------------- 1 | package com.mjun.demo.example2; 2 | 3 | import java.io.*; 4 | 5 | public class AppBean implements Serializable { 6 | 7 | public String mName; 8 | public String mSnapshot; 9 | public int mIconId; 10 | } 11 | -------------------------------------------------------------------------------- /mtransition/src/main/res/anim/no_anim.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Sun Jun 17 19:41:32 CST 2018 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/layout/example8.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/layout/example9.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | #ffffff 7 | #00ffffff 8 | 9 | -------------------------------------------------------------------------------- /.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 11 | /.idea/.name 12 | /.idea/compiler.xml 13 | /.idea/encodings.xml 14 | /.idea/gradle.xml 15 | /.idea/misc.xml 16 | /.idea/modules.xml 17 | /.idea/runConfigurations.xml 18 | /.idea/vcs.xml -------------------------------------------------------------------------------- /app/.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 11 | /.idea/.name 12 | /.idea/compiler.xml 13 | /.idea/encodings.xml 14 | /.idea/gradle.xml 15 | /.idea/misc.xml 16 | /.idea/modules.xml 17 | /.idea/runConfigurations.xml 18 | /.idea/vcs.xml -------------------------------------------------------------------------------- /mtransition/.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 11 | /.idea/.name 12 | /.idea/compiler.xml 13 | /.idea/encodings.xml 14 | /.idea/gradle.xml 15 | /.idea/misc.xml 16 | /.idea/modules.xml 17 | /.idea/runConfigurations.xml 18 | /.idea/vcs.xml -------------------------------------------------------------------------------- /mtransition/src/main/java/com/mjun/mtransition/anim/IAnimFactor.java: -------------------------------------------------------------------------------- 1 | package com.mjun.mtransition.anim; 2 | 3 | import android.view.animation.LinearInterpolator; 4 | 5 | /** 6 | * @author huijun.zhj 7 | */ 8 | public interface IAnimFactor { 9 | 10 | LinearInterpolator sBaseInterpolator = new LinearInterpolator(); 11 | 12 | T getCurrentAnimValue(long playTime, float animProgress); 13 | } 14 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | 7 | 40dp 8 | 360dp 9 | 234dp 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/roundrect.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /app/src/test/java/com/mjun/mtransition/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.mjun.mtransition; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /mtransition/src/test/java/com/mjun/mtransition/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.mjun.mtransition; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /mtransition/src/main/java/com/mjun/mtransition/ITransitPrepareListener.java: -------------------------------------------------------------------------------- 1 | package com.mjun.mtransition; 2 | 3 | import android.view.View; 4 | 5 | /** 6 | * @author huijun.zhj 7 | * {@link MTransitionPage#setContainer(View, ITransitPrepareListener)}参数所用 8 | * {@link MTransitionPage#setContainer(View, ITransitPrepareListener)} parameters used 9 | */ 10 | public interface ITransitPrepareListener { 11 | /** 12 | * 当 {@link MTransitionPage} 设置好Container时回调 13 | * Callback when {@link MTransitionPage} sets Container 14 | * 15 | * @param container 16 | */ 17 | void onPrepare(MTransitionView container); 18 | } 19 | -------------------------------------------------------------------------------- /app/src/main/java/com/mjun/demo/TestActivityAnimtaionActivity.java: -------------------------------------------------------------------------------- 1 | package com.mjun.demo; 2 | 3 | import android.app.Activity; 4 | import android.os.Bundle; 5 | import android.support.annotation.Nullable; 6 | import android.widget.TextView; 7 | 8 | 9 | /** 10 | * Created by huijun on 2018/6/8. 11 | */ 12 | 13 | public class TestActivityAnimtaionActivity extends Activity { 14 | 15 | @Override 16 | protected void onCreate(@Nullable Bundle savedInstanceState) { 17 | super.onCreate(savedInstanceState); 18 | TextView textView = new TextView(this); 19 | textView.setText(getString(R.string.test_tip)); 20 | setContentView(textView); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /mtransition/src/main/java/com/mjun/mtransition/bundle/MTransitionBundle.java: -------------------------------------------------------------------------------- 1 | package com.mjun.mtransition.bundle; 2 | 3 | import com.mjun.mtransition.MTransition; 4 | /** 5 | * @author huijun.zhj 6 | * 7 | * 传递数据所用 {@link MTransition#getBundle()},其用法和{@link android.os.Bundle}一致 8 | * Used to pass data {@link MTransition#getBundle()},Its usage is the same as {@link android.os.Bundle} 9 | */ 10 | public class MTransitionBundle extends Bundle { 11 | 12 | public void putObject(String key, Object value) { 13 | mMap.put(key, value); 14 | } 15 | 16 | public Object getObject(String key) { 17 | Object o = mMap.get(key); 18 | return o; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /mtransition/src/main/java/com/mjun/mtransition/Log.java: -------------------------------------------------------------------------------- 1 | package com.mjun.mtransition; 2 | 3 | /** 4 | * @author huijun.zhj 5 | * 日志工具类 6 | * Log Util 7 | */ 8 | class Log { 9 | 10 | public static final boolean DEBUG = false; 11 | 12 | static void v(String tag, String msg) { 13 | if (DEBUG) { 14 | android.util.Log.v(tag, msg); 15 | } 16 | } 17 | 18 | static void d(String tag, String msg) { 19 | if (DEBUG) { 20 | android.util.Log.d(tag, msg); 21 | } 22 | } 23 | 24 | static void e(String tag, String msg) { 25 | if (DEBUG) { 26 | android.util.Log.e(tag, msg); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /mtransition/src/main/java/com/mjun/mtransition/TransitListenerAdapter.java: -------------------------------------------------------------------------------- 1 | package com.mjun.mtransition; 2 | 3 | /** 4 | * @author huijun.zhj 5 | * 6 | * 对{@link OnTransitListener}空实现 7 | * Empty implementation of {@link OnTransitListener} 8 | */ 9 | public class TransitListenerAdapter implements OnTransitListener { 10 | 11 | @Override 12 | public void onTransitStart(MTransition transition, boolean reverse) { 13 | 14 | } 15 | 16 | @Override 17 | public void onTransitProgress(MTransition transition, boolean reverse, float progress) { 18 | 19 | } 20 | 21 | @Override 22 | public void onTransitEnd(MTransition transition, boolean reverse) { 23 | 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /mtransition/src/main/java/com/mjun/mtransition/anim/ScaleXFactor.java: -------------------------------------------------------------------------------- 1 | package com.mjun.mtransition.anim; 2 | 3 | /** 4 | * @author huijun.zhj 5 | */ 6 | public class ScaleXFactor extends BaseAnimFactor { 7 | 8 | float mFrom = 1f; 9 | float mTo = 1f; 10 | 11 | @Override 12 | public Float getCurrentAnimValue(long playTime, float animProgress) { 13 | float progress = mInterpolator.getInterpolation(getAnimProgress(playTime, animProgress)); 14 | float result = (mTo - mFrom) * progress + mFrom; 15 | return result; 16 | } 17 | 18 | public void setFrom(float mFrom) { 19 | this.mFrom = mFrom; 20 | } 21 | 22 | public void setTo(float mTo) { 23 | this.mTo = mTo; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /mtransition/src/main/java/com/mjun/mtransition/anim/ScaleYFactor.java: -------------------------------------------------------------------------------- 1 | package com.mjun.mtransition.anim; 2 | 3 | /** 4 | * @author huijun.zhj 5 | */ 6 | public class ScaleYFactor extends BaseAnimFactor { 7 | 8 | float mFrom = 1f; 9 | float mTo = 1f; 10 | 11 | @Override 12 | public Float getCurrentAnimValue(long playTime, float animProgress) { 13 | float progress = mInterpolator.getInterpolation(getAnimProgress(playTime, animProgress)); 14 | float result = (mTo - mFrom) * progress + mFrom; 15 | return result; 16 | } 17 | 18 | public void setFrom(float mFrom) { 19 | this.mFrom = mFrom; 20 | } 21 | 22 | public void setTo(float mTo) { 23 | this.mTo = mTo; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /mtransition/src/main/java/com/mjun/mtransition/anim/RotateXFactor.java: -------------------------------------------------------------------------------- 1 | package com.mjun.mtransition.anim; 2 | 3 | /** 4 | * @author huijun.zhj 5 | */ 6 | public class RotateXFactor extends BaseAnimFactor { 7 | 8 | int mFrom = 0; 9 | int mTo = 0; 10 | 11 | @Override 12 | public Integer getCurrentAnimValue(long playTime, float animProgress) { 13 | float progress = mInterpolator.getInterpolation(getAnimProgress(playTime, animProgress)); 14 | int result = (int) ((mTo - mFrom) * progress + mFrom); 15 | return result; 16 | } 17 | 18 | public void setFrom(int mFrom) { 19 | this.mFrom = mFrom; 20 | } 21 | 22 | public void setTo(int mTo) { 23 | this.mTo = mTo; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /mtransition/src/main/java/com/mjun/mtransition/anim/RotateYFactor.java: -------------------------------------------------------------------------------- 1 | package com.mjun.mtransition.anim; 2 | 3 | /** 4 | * @author huijun.zhj 5 | */ 6 | public class RotateYFactor extends BaseAnimFactor { 7 | 8 | int mFrom = 0; 9 | int mTo = 0; 10 | 11 | @Override 12 | public Integer getCurrentAnimValue(long playTime, float animProgress) { 13 | float progress = mInterpolator.getInterpolation(getAnimProgress(playTime, animProgress)); 14 | int result = (int) ((mTo - mFrom) * progress + mFrom); 15 | return result; 16 | } 17 | 18 | public void setFrom(int mFrom) { 19 | this.mFrom = mFrom; 20 | } 21 | 22 | public void setTo(int mTo) { 23 | this.mTo = mTo; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /mtransition/src/main/java/com/mjun/mtransition/anim/RotateZFactor.java: -------------------------------------------------------------------------------- 1 | package com.mjun.mtransition.anim; 2 | 3 | /** 4 | * @author huijun.zhj 5 | */ 6 | public class RotateZFactor extends BaseAnimFactor { 7 | 8 | int mFrom = 0; 9 | int mTo = 0; 10 | 11 | @Override 12 | public Integer getCurrentAnimValue(long playTime, float animProgress) { 13 | float progress = mInterpolator.getInterpolation(getAnimProgress(playTime, animProgress)); 14 | int result = (int) ((mTo - mFrom) * progress + mFrom); 15 | return result; 16 | } 17 | 18 | public void setFrom(int mFrom) { 19 | this.mFrom = mFrom; 20 | } 21 | 22 | public void setTo(int mTo) { 23 | this.mTo = mTo; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /mtransition/src/main/java/com/mjun/mtransition/anim/TranslateXFactor.java: -------------------------------------------------------------------------------- 1 | package com.mjun.mtransition.anim; 2 | 3 | /** 4 | * @author huijun.zhj 5 | */ 6 | public class TranslateXFactor extends BaseAnimFactor { 7 | 8 | int mFrom = 0; 9 | int mTo = 0; 10 | 11 | @Override 12 | public Integer getCurrentAnimValue(long playTime, float animProgress) { 13 | float progress = mInterpolator.getInterpolation(getAnimProgress(playTime, animProgress)); 14 | int result = (int) ((mTo - mFrom) * progress + mFrom); 15 | return result; 16 | } 17 | 18 | public void setFrom(int mFrom) { 19 | this.mFrom = mFrom; 20 | } 21 | 22 | public void setTo(int mTo) { 23 | this.mTo = mTo; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /mtransition/src/main/java/com/mjun/mtransition/anim/TranslateYFactor.java: -------------------------------------------------------------------------------- 1 | package com.mjun.mtransition.anim; 2 | 3 | /** 4 | * @author huijun.zhj 5 | */ 6 | public class TranslateYFactor extends BaseAnimFactor { 7 | 8 | int mFrom = 0; 9 | int mTo = 0; 10 | 11 | @Override 12 | public Integer getCurrentAnimValue(long playTime, float animProgress) { 13 | float progress = mInterpolator.getInterpolation(getAnimProgress(playTime, animProgress)); 14 | int result = (int) ((mTo - mFrom) * progress + mFrom); 15 | return result; 16 | } 17 | 18 | public void setFrom(int mFrom) { 19 | this.mFrom = mFrom; 20 | } 21 | 22 | public void setTo(int mTo) { 23 | this.mTo = mTo; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /mtransition/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | android { 4 | compileSdkVersion 26 5 | 6 | 7 | 8 | defaultConfig { 9 | minSdkVersion 14 10 | targetSdkVersion 26 11 | versionCode 1 12 | versionName "1.0" 13 | 14 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 15 | 16 | } 17 | 18 | buildTypes { 19 | release { 20 | minifyEnabled false 21 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 22 | } 23 | } 24 | 25 | } 26 | 27 | dependencies { 28 | implementation fileTree(dir: 'libs', include: ['*.jar']) 29 | 30 | compile 'com.android.support:support-annotations:27.1.1' 31 | } 32 | -------------------------------------------------------------------------------- /mtransition/src/main/java/com/mjun/mtransition/anim/AlphaFactor.java: -------------------------------------------------------------------------------- 1 | package com.mjun.mtransition.anim; 2 | 3 | /** 4 | * @author huijun.zhj 5 | */ 6 | public class AlphaFactor extends BaseAnimFactor { 7 | 8 | float mFrom = 1f; 9 | float mTo = 1f; 10 | 11 | @Override 12 | public Float getCurrentAnimValue(long playTime, float animProgress) { 13 | float progress = mInterpolator.getInterpolation(getAnimProgress(playTime, animProgress)); 14 | float result = (mTo - mFrom) * progress + mFrom; 15 | return result; 16 | } 17 | 18 | public void setFrom(float mFrom) { 19 | this.mFrom = mFrom; 20 | } 21 | 22 | public void setTo(float mTo) { 23 | this.mTo = mTo; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | org.gradle.jvmargs=-Xmx1536m 13 | 14 | # When configured, Gradle will run in incubating parallel mode. 15 | # This option should only be used with decoupled projects. More details, visit 16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 17 | # org.gradle.parallel=true 18 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /mtransition/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | -------------------------------------------------------------------------------- /app/src/main/res/layout/example4_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 15 | 16 |