├── .gitignore ├── README.md ├── app ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── com │ │ └── example │ │ └── zys │ │ └── shareelementtransition │ │ └── ExampleInstrumentedTest.java │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── com │ │ │ └── example │ │ │ └── zys │ │ │ └── shareelementtransition │ │ │ ├── Constant.java │ │ │ ├── MainActivity.java │ │ │ ├── MainFragment.java │ │ │ └── SecondActivity.java │ └── res │ │ ├── drawable-xxhdpi │ │ ├── image1.jpg │ │ ├── image2.jpg │ │ ├── image3.jpg │ │ └── image4.jpg │ │ ├── drawable │ │ └── qqq.png │ │ ├── layout │ │ ├── activity_main.xml │ │ ├── activity_second.xml │ │ ├── content_main.xml │ │ ├── content_second.xml │ │ ├── fragment_content_main.xml │ │ ├── item_recyclerview.xml │ │ └── item_viewpager.xml │ │ ├── menu │ │ └── menu_main.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-v21 │ │ └── styles.xml │ │ ├── values-w820dp │ │ └── dimens.xml │ │ └── values │ │ ├── colors.xml │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml │ └── test │ └── java │ └── com │ └── example │ └── zys │ └── shareelementtransition │ └── ExampleUnitTest.java ├── build.gradle ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle /.gitignore: -------------------------------------------------------------------------------- 1 | # Built application files 2 | *.apk 3 | *.ap_ 4 | 5 | # Files for the ART/Dalvik VM 6 | *.dex 7 | 8 | # Java class files 9 | *.class 10 | 11 | # Generated files 12 | bin/ 13 | gen/ 14 | out/ 15 | 16 | # Gradle files 17 | .gradle/ 18 | build/ 19 | 20 | # Local configuration file (sdk path, etc) 21 | local.properties 22 | 23 | # Proguard folder generated by Eclipse 24 | proguard/ 25 | 26 | # Log Files 27 | *.log 28 | 29 | # Android Studio Navigation editor temp files 30 | .navigation/ 31 | 32 | # Android Studio captures folder 33 | captures/ 34 | 35 | # Intellij 36 | *.iml 37 | .idea/ 38 | 39 | # Keystore files 40 | *.jks 41 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Share element form RecyclerView to ViewPager 2 | 3 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 24 5 | buildToolsVersion "24.0.0" 6 | defaultConfig { 7 | applicationId "com.example.zys.shareelementtransition" 8 | minSdkVersion 21 9 | targetSdkVersion 24 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:24.+' 28 | compile 'com.android.support:design:24.+' 29 | testCompile 'junit:junit:4.12' 30 | } 31 | -------------------------------------------------------------------------------- /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/zys/Documents/sdk/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/com/example/zys/shareelementtransition/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.example.zys.shareelementtransition; 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("com.example.zys.shareelementtransition", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 13 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/zys/shareelementtransition/Constant.java: -------------------------------------------------------------------------------- 1 | package com.example.zys.shareelementtransition; 2 | 3 | import static com.example.zys.shareelementtransition.R.drawable.image2; 4 | import static com.example.zys.shareelementtransition.R.drawable.image3; 5 | import static com.example.zys.shareelementtransition.R.drawable.image4; 6 | 7 | /** 8 | * Created by zys on 16/11/4. 9 | */ 10 | 11 | public class Constant { 12 | 13 | public static final int IMAGE_ARRAY[]={ 14 | R.drawable.image1, image2, 15 | image3, image4 16 | }; 17 | public static final String TRANSITION_NAME ="image"; 18 | 19 | public static final String EXTRA_START_POSITION="extra_start_position"; 20 | public static final String EXTRA_CURRENT_POSITION="extra_current_position"; 21 | } 22 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/zys/shareelementtransition/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.zys.shareelementtransition; 2 | 3 | import android.app.SharedElementCallback; 4 | import android.content.Intent; 5 | import android.os.Bundle; 6 | import android.support.v4.app.FragmentTransaction; 7 | import android.support.v7.app.AppCompatActivity; 8 | import android.support.v7.widget.Toolbar; 9 | import android.view.Menu; 10 | import android.view.MenuItem; 11 | import android.view.View; 12 | 13 | import java.util.List; 14 | import java.util.Map; 15 | 16 | public class MainActivity extends AppCompatActivity { 17 | 18 | private Bundle mTmpReenterState; 19 | 20 | private MainFragment mFragment; 21 | @Override 22 | protected void onCreate(Bundle savedInstanceState) { 23 | super.onCreate(savedInstanceState); 24 | setContentView(R.layout.activity_main); 25 | setExitSharedElementCallback(mCallback); 26 | 27 | Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); 28 | setSupportActionBar(toolbar); 29 | 30 | mFragment = new MainFragment(); 31 | FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction(); 32 | fragmentTransaction.add(R.id.container,mFragment,"main").commit(); 33 | 34 | } 35 | 36 | 37 | private final SharedElementCallback mCallback = new SharedElementCallback() { 38 | @Override 39 | public void onMapSharedElements(List names, Map sharedElements) { 40 | if (mTmpReenterState != null) { 41 | int startingPosition = mTmpReenterState.getInt(Constant.EXTRA_START_POSITION); 42 | int currentPosition = mTmpReenterState.getInt(Constant.EXTRA_CURRENT_POSITION); 43 | if (startingPosition != currentPosition) { 44 | View newSharedElement=mFragment.getNewSharedElement(currentPosition); 45 | if (newSharedElement != null) { 46 | names.clear(); 47 | names.add(Constant.TRANSITION_NAME +currentPosition); 48 | sharedElements.clear(); 49 | sharedElements.put(Constant.TRANSITION_NAME +currentPosition, newSharedElement); 50 | } 51 | } 52 | mTmpReenterState = null; 53 | } else { 54 | View navigationBar = findViewById(android.R.id.navigationBarBackground); 55 | View statusBar = findViewById(android.R.id.statusBarBackground); 56 | if (navigationBar != null) { 57 | names.add(navigationBar.getTransitionName()); 58 | sharedElements.put(navigationBar.getTransitionName(), navigationBar); 59 | } 60 | if (statusBar != null) { 61 | names.add(statusBar.getTransitionName()); 62 | sharedElements.put(statusBar.getTransitionName(), statusBar); 63 | } 64 | } 65 | } 66 | }; 67 | 68 | @Override 69 | public void onActivityReenter(int requestCode, Intent data) { 70 | super.onActivityReenter(requestCode, data); 71 | mTmpReenterState=data.getExtras(); 72 | int startPosition = mTmpReenterState.getInt(Constant.EXTRA_START_POSITION); 73 | int currentPosition = mTmpReenterState.getInt(Constant.EXTRA_CURRENT_POSITION); 74 | mFragment.rennter(startPosition,currentPosition); 75 | } 76 | 77 | @Override 78 | public boolean onCreateOptionsMenu(Menu menu) { 79 | getMenuInflater().inflate(R.menu.menu_main, menu); 80 | return true; 81 | } 82 | 83 | @Override 84 | public boolean onOptionsItemSelected(MenuItem item) { 85 | int id = item.getItemId(); 86 | if (id == R.id.action_settings) { 87 | return true; 88 | } 89 | return super.onOptionsItemSelected(item); 90 | } 91 | } 92 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/zys/shareelementtransition/MainFragment.java: -------------------------------------------------------------------------------- 1 | package com.example.zys.shareelementtransition; 2 | 3 | import android.content.Intent; 4 | import android.graphics.drawable.Drawable; 5 | import android.os.Build; 6 | import android.os.Bundle; 7 | import android.support.annotation.Nullable; 8 | import android.support.v4.app.ActivityOptionsCompat; 9 | import android.support.v4.app.Fragment; 10 | import android.support.v7.widget.LinearLayoutManager; 11 | import android.support.v7.widget.RecyclerView; 12 | import android.view.LayoutInflater; 13 | import android.view.View; 14 | import android.view.ViewGroup; 15 | import android.view.ViewTreeObserver; 16 | import android.widget.ImageView; 17 | 18 | import static com.example.zys.shareelementtransition.Constant.IMAGE_ARRAY; 19 | 20 | /** 21 | * Created by zys on 16/11/3. 22 | */ 23 | 24 | public class MainFragment extends Fragment { 25 | 26 | private RecyclerView mRecyclerView; 27 | private MyAdapter mMyAdapter; 28 | private LinearLayoutManager mLinearLayoutManager; 29 | 30 | public MainFragment() { 31 | super(); 32 | } 33 | 34 | @Nullable 35 | @Override 36 | public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, 37 | @Nullable Bundle savedInstanceState) { 38 | View view = inflater.inflate(R.layout.fragment_content_main, container, false); 39 | mRecyclerView = (RecyclerView) view.findViewById(R.id.recyclerview); 40 | 41 | return view; 42 | } 43 | 44 | @Override 45 | public void onViewCreated(View view, @Nullable Bundle savedInstanceState) { 46 | mLinearLayoutManager = new LinearLayoutManager(getActivity()); 47 | mLinearLayoutManager.setOrientation(LinearLayoutManager.VERTICAL); 48 | mRecyclerView.setLayoutManager(mLinearLayoutManager); 49 | mMyAdapter = new MyAdapter(); 50 | mRecyclerView.setAdapter(mMyAdapter); 51 | } 52 | 53 | 54 | public ImageView getNewSharedElement(int position) { 55 | return (ImageView) mRecyclerView.findViewWithTag("tag" + position); 56 | } 57 | 58 | public void rennter(int startPosition, int currentPosition) { 59 | if (startPosition != currentPosition) { 60 | mRecyclerView.scrollToPosition(currentPosition); 61 | } 62 | getActivity().postponeEnterTransition(); 63 | mRecyclerView.getViewTreeObserver().addOnPreDrawListener(new ViewTreeObserver.OnPreDrawListener() { 64 | @Override 65 | public boolean onPreDraw() { 66 | mRecyclerView.getViewTreeObserver().removeOnPreDrawListener(this); 67 | mRecyclerView.requestLayout(); 68 | getActivity().startPostponedEnterTransition(); 69 | return true; 70 | } 71 | }); 72 | } 73 | 74 | 75 | private class MyAdapter extends RecyclerView.Adapter { 76 | 77 | private LayoutInflater mLayoutInflater; 78 | 79 | 80 | public MyAdapter() { 81 | mLayoutInflater = LayoutInflater.from(getActivity()); 82 | } 83 | 84 | @Override 85 | public int getItemCount() { 86 | return Constant.IMAGE_ARRAY.length; 87 | } 88 | 89 | 90 | @Override 91 | public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { 92 | View view = mLayoutInflater.inflate(R.layout.item_recyclerview, parent, false); 93 | return new MyViewHolder(view); 94 | } 95 | 96 | 97 | @Override 98 | public void onBindViewHolder(MyViewHolder holder, int position) { 99 | Drawable drawable = getActivity().getResources().getDrawable(IMAGE_ARRAY[position]); 100 | holder.imageView.setImageDrawable(drawable); 101 | holder.imageView.setTransitionName( Constant.TRANSITION_NAME + position); 102 | holder.imageView.setTag("tag" + position); 103 | 104 | } 105 | 106 | 107 | public class MyViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener { 108 | 109 | public ImageView imageView; 110 | 111 | public MyViewHolder(View itemView) { 112 | super(itemView); 113 | itemView.setOnClickListener(this); 114 | imageView = (ImageView) itemView.findViewById(R.id.item_imageview); 115 | } 116 | 117 | @Override 118 | public void onClick(View view) { 119 | Intent intent = new Intent(getActivity(), SecondActivity.class); 120 | intent.putExtra(Constant.EXTRA_START_POSITION, getAdapterPosition()); 121 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { 122 | 123 | ActivityOptionsCompat options = ActivityOptionsCompat. 124 | makeSceneTransitionAnimation(getActivity(), imageView, imageView.getTransitionName()); 125 | getActivity().startActivity(intent, options.toBundle()); 126 | } else { 127 | getActivity().startActivity(intent); 128 | } 129 | } 130 | } 131 | } 132 | } 133 | -------------------------------------------------------------------------------- /app/src/main/java/com/example/zys/shareelementtransition/SecondActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.zys.shareelementtransition; 2 | 3 | import android.content.Intent; 4 | import android.graphics.Rect; 5 | import android.graphics.drawable.Drawable; 6 | import android.os.Bundle; 7 | import android.support.v4.app.SharedElementCallback; 8 | import android.support.v4.view.PagerAdapter; 9 | import android.support.v4.view.ViewPager; 10 | import android.support.v7.app.AppCompatActivity; 11 | import android.support.v7.widget.Toolbar; 12 | import android.view.LayoutInflater; 13 | import android.view.MenuItem; 14 | import android.view.View; 15 | import android.view.ViewGroup; 16 | import android.view.ViewTreeObserver; 17 | import android.widget.ImageView; 18 | 19 | import java.util.List; 20 | import java.util.Map; 21 | 22 | import static com.example.zys.shareelementtransition.Constant.IMAGE_ARRAY; 23 | 24 | public class SecondActivity extends AppCompatActivity { 25 | 26 | private ViewPager mViewPager; 27 | private Adapter mAdapter; 28 | private View mCurrentView; 29 | private int mCurrentPosition; 30 | private int mStartPosition; 31 | private boolean mIsReturning; 32 | 33 | @Override 34 | protected void onCreate(Bundle savedInstanceState) { 35 | super.onCreate(savedInstanceState); 36 | setContentView(R.layout.activity_second); 37 | postponeEnterTransition(); 38 | setEnterSharedElementCallback(mCallback); 39 | Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); 40 | setSupportActionBar(toolbar); 41 | mStartPosition = getIntent().getIntExtra(Constant.EXTRA_START_POSITION, 0); 42 | if (savedInstanceState == null) { 43 | mCurrentPosition = mStartPosition; 44 | } else { 45 | mCurrentPosition = savedInstanceState.getInt(Constant.EXTRA_CURRENT_POSITION); 46 | } 47 | mAdapter = new Adapter(); 48 | mViewPager = (ViewPager) findViewById(R.id.viewpager); 49 | mViewPager.setAdapter(mAdapter); 50 | mViewPager.setCurrentItem(mStartPosition); 51 | mViewPager.addOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() { 52 | @Override 53 | public void onPageSelected(int position) { 54 | mCurrentPosition = position; 55 | } 56 | }); 57 | 58 | } 59 | 60 | 61 | @Override 62 | protected void onSaveInstanceState(Bundle outState) { 63 | super.onSaveInstanceState(outState); 64 | outState.putInt(Constant.EXTRA_CURRENT_POSITION, mCurrentPosition); 65 | } 66 | 67 | SharedElementCallback mCallback = new SharedElementCallback() { 68 | @Override 69 | public void onMapSharedElements(List names, Map sharedElements) { 70 | if (mIsReturning) { 71 | ImageView imageView = (ImageView) mCurrentView.findViewById(R.id.item_imageview); 72 | Rect rect = new Rect(); 73 | getWindow().getDecorView().getHitRect(rect); 74 | if (imageView.getLocalVisibleRect(rect)) { 75 | if (imageView == null) { 76 | names.clear(); 77 | sharedElements.clear(); 78 | } else if (mStartPosition != mCurrentPosition) { 79 | names.clear(); 80 | names.add(imageView.getTransitionName()); 81 | sharedElements.clear(); 82 | sharedElements.put(imageView.getTransitionName(), imageView); 83 | } 84 | } 85 | } 86 | } 87 | }; 88 | 89 | 90 | private class Adapter extends PagerAdapter { 91 | 92 | LayoutInflater mLayoutInflater; 93 | ImageView mImageView; 94 | 95 | public Adapter() { 96 | mLayoutInflater = LayoutInflater.from(SecondActivity.this); 97 | } 98 | 99 | 100 | @Override 101 | public Object instantiateItem(ViewGroup container, int position) { 102 | View view = mLayoutInflater.inflate(R.layout.item_viewpager, container, false); 103 | mImageView = (ImageView) view.findViewById(R.id.item_imageview); 104 | mImageView.setTransitionName(Constant.TRANSITION_NAME + position); 105 | Drawable drawable = getResources().getDrawable(IMAGE_ARRAY[position]); 106 | mImageView.setImageDrawable(drawable); 107 | if (position == mStartPosition) { 108 | mImageView.getViewTreeObserver().addOnPreDrawListener(new ViewTreeObserver.OnPreDrawListener() { 109 | @Override 110 | public boolean onPreDraw() { 111 | mImageView.getViewTreeObserver().removeOnPreDrawListener(this); 112 | startPostponedEnterTransition(); 113 | return true; 114 | } 115 | }); 116 | } 117 | container.addView(view); 118 | return view; 119 | } 120 | 121 | 122 | @Override 123 | public void destroyItem(ViewGroup container, int position, Object object) { 124 | container.removeView((View) object); 125 | } 126 | 127 | @Override 128 | public void setPrimaryItem(ViewGroup container, int position, Object object) { 129 | mCurrentView = (View) object; 130 | } 131 | 132 | @Override 133 | public int getCount() { 134 | return Constant.IMAGE_ARRAY.length; 135 | } 136 | 137 | @Override 138 | public boolean isViewFromObject(View view, Object object) { 139 | return view == object; 140 | } 141 | 142 | 143 | } 144 | 145 | @Override 146 | public void finishAfterTransition() { 147 | 148 | mIsReturning = true; 149 | Intent intent = new Intent(); 150 | intent.putExtra(Constant.EXTRA_START_POSITION, mStartPosition); 151 | intent.putExtra(Constant.EXTRA_CURRENT_POSITION, mCurrentPosition); 152 | setResult(RESULT_OK, intent); 153 | super.finishAfterTransition(); 154 | } 155 | 156 | @Override 157 | public boolean onOptionsItemSelected(MenuItem item) { 158 | 159 | if (item.getItemId() == android.R.id.home) { 160 | supportFinishAfterTransition(); 161 | return true; 162 | } 163 | return super.onOptionsItemSelected(item); 164 | } 165 | } 166 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/image1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zysidea/ShareElementTransition/6befeb3ce7f618a03ffcbccc01ed6ba9fb210b96/app/src/main/res/drawable-xxhdpi/image1.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/image2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zysidea/ShareElementTransition/6befeb3ce7f618a03ffcbccc01ed6ba9fb210b96/app/src/main/res/drawable-xxhdpi/image2.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/image3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zysidea/ShareElementTransition/6befeb3ce7f618a03ffcbccc01ed6ba9fb210b96/app/src/main/res/drawable-xxhdpi/image3.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/image4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zysidea/ShareElementTransition/6befeb3ce7f618a03ffcbccc01ed6ba9fb210b96/app/src/main/res/drawable-xxhdpi/image4.jpg -------------------------------------------------------------------------------- /app/src/main/res/drawable/qqq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zysidea/ShareElementTransition/6befeb3ce7f618a03ffcbccc01ed6ba9fb210b96/app/src/main/res/drawable/qqq.png -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 15 | 16 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_second.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 16 | 17 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /app/src/main/res/layout/content_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 13 | 14 | -------------------------------------------------------------------------------- /app/src/main/res/layout/content_second.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 18 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_content_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 14 | 15 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /app/src/main/res/layout/item_recyclerview.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 17 | 18 | -------------------------------------------------------------------------------- /app/src/main/res/layout/item_viewpager.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 16 | 17 | -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 5 | 10 | 11 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zysidea/ShareElementTransition/6befeb3ce7f618a03ffcbccc01ed6ba9fb210b96/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zysidea/ShareElementTransition/6befeb3ce7f618a03ffcbccc01ed6ba9fb210b96/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zysidea/ShareElementTransition/6befeb3ce7f618a03ffcbccc01ed6ba9fb210b96/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zysidea/ShareElementTransition/6befeb3ce7f618a03ffcbccc01ed6ba9fb210b96/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zysidea/ShareElementTransition/6befeb3ce7f618a03ffcbccc01ed6ba9fb210b96/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 16dp 6 | 300dp 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | ShareElement 3 | Settings 4 | Second 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | 17 |