├── .gitignore ├── Demo.gif ├── LICENSE ├── README.md ├── RealParallaxDemo.iml ├── app ├── .gitignore ├── app.iml ├── build.gradle ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── com │ │ └── hmallet │ │ └── realparallaxdemo │ │ └── ApplicationTest.java │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── com │ │ │ └── hmallet │ │ │ └── realparallaxdemo │ │ │ ├── Fragment1.java │ │ │ ├── Fragment2.java │ │ │ ├── Fragment3.java │ │ │ ├── MainActivity.java │ │ │ └── MyPagerAdapter.java │ └── res │ │ ├── layout │ │ ├── activity_main.xml │ │ ├── content_main.xml │ │ ├── view_pager_item_1.xml │ │ ├── view_pager_item_2.xml │ │ └── view_pager_item_3.xml │ │ ├── menu │ │ └── menu_main.xml │ │ ├── mipmap-hdpi │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ ├── background.png │ │ └── 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 │ └── hmallet │ └── realparallaxdemo │ └── ExampleUnitTest.java ├── build.gradle ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── library ├── .gitignore ├── build.gradle ├── library.iml ├── proguard-rules.pro └── src │ ├── androidTest │ └── java │ │ └── com │ │ └── github │ │ └── hmallet │ │ └── realparallaxandroid │ │ └── ApplicationTest.java │ ├── main │ ├── AndroidManifest.xml │ ├── java │ │ └── com │ │ │ └── github │ │ │ └── hmallet │ │ │ └── realparallaxandroid │ │ │ ├── RealHorizontalScrollView.java │ │ │ └── RealViewPager.java │ └── res │ │ ├── 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 │ │ ├── attrs.xml │ │ ├── colors.xml │ │ ├── strings.xml │ │ └── styles.xml │ └── test │ └── java │ └── com │ └── github │ └── hmallet │ └── realparallaxandroid │ └── ExampleUnitTest.java ├── realparallaxandroid.png └── settings.gradle /.gitignore: -------------------------------------------------------------------------------- 1 | # Built application files 2 | *.apk 3 | *.ap_ 4 | 5 | # Files for the Dalvik VM 6 | *.dex 7 | 8 | # Java class files 9 | *.class 10 | 11 | # Generated files 12 | bin/ 13 | gen/ 14 | proguard/ 15 | *.iws 16 | *.iml 17 | *.ipr 18 | .idea 19 | 20 | # files 21 | *.iml 22 | .idea/ 23 | 24 | # Gradle files 25 | .gradle/ 26 | build/ 27 | /*/build/ 28 | 29 | # Local configuration file (sdk path, etc) 30 | local.properties 31 | 32 | # Proguard folder generated by Eclipse 33 | proguard/ 34 | 35 | # Log Files 36 | *.log 37 | -------------------------------------------------------------------------------- /Demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mallethugo/RealParallaxAndroid/b5e9bba81b189a623b97037b7cc414ec3b92f518/Demo.gif -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Hugo Mallet 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![RealParallaxAndroid](https://github.com/mallethugo/RealParallaxAndroid/blob/master/realparallaxandroid.png) 2 | 3 | === 4 | 5 | RealParallaxAndroid is a View Pager with a Real Parallax Android Effect 6 | 7 | [![Sample Screenshot](https://img.shields.io/badge/Android%20Arsenal-RealParallaxAndroid-green.svg?style=true)](https://android-arsenal.com/details/1/2918) 8 | 9 | ![RealParallaxAndroid](https://github.com/mallethugo/RealParallaxAndroid/blob/master/Demo.gif) 10 | 11 | # Usage 12 | 13 | ```xml 14 | 19 | 20 | 25 | ``` 26 | 27 | ## Custom Attributes for RealHorizontalScrollView 28 | 29 | - `app:src` 30 | 31 | ## Custom Attributes for RealViewPager 32 | 33 | - `parallaxVelocity` float to manage parallax effect 34 | 35 | 36 | ## Gradle 37 | 38 | At your project `build.gradle` file: 39 | 40 | ```groovy 41 | dependencies { 42 | compile 'com.github.hmallet:realparallaxandroid:1.0.2' 43 | } 44 | ``` 45 | 46 | Done! 47 | 48 | #Author 49 | Hugo Mallet: 50 | - hello@mallethugo.com 51 | - [@mallethugo](https://twitter.com/mallethugo) 52 | - [Linkedin](https://www.linkedin.com/in/hugomallet) 53 | 54 | # License 55 | 56 | The MIT License (MIT) 57 | 58 | Copyright (c) 2015 Hugo Mallet 59 | 60 | Permission is hereby granted, free of charge, to any person obtaining a copy 61 | of this software and associated documentation files (the "Software"), to deal 62 | in the Software without restriction, including without limitation the rights 63 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 64 | copies of the Software, and to permit persons to whom the Software is 65 | furnished to do so, subject to the following conditions: 66 | 67 | The above copyright notice and this permission notice shall be included in all 68 | copies or substantial portions of the Software. 69 | 70 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 71 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 72 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 73 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 74 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 75 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 76 | SOFTWARE. 77 | -------------------------------------------------------------------------------- /RealParallaxDemo.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /app/app.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 | 10 | 11 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.1" 6 | 7 | defaultConfig { 8 | applicationId "com.hmallet.realparallaxdemo" 9 | minSdkVersion 14 10 | targetSdkVersion 23 11 | versionCode 1 12 | versionName "1.0" 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(include: ['*.jar'], dir: 'libs') 24 | testCompile 'junit:junit:4.12' 25 | compile 'com.android.support:appcompat-v7:23.1.1' 26 | compile 'com.android.support:design:23.1.1' 27 | compile project(':library') 28 | } 29 | -------------------------------------------------------------------------------- /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/hugo/Library/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/com/hmallet/realparallaxdemo/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.hmallet.realparallaxdemo; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 11 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /app/src/main/java/com/hmallet/realparallaxdemo/Fragment1.java: -------------------------------------------------------------------------------- 1 | package com.hmallet.realparallaxdemo; 2 | 3 | import android.os.Bundle; 4 | import android.support.annotation.Nullable; 5 | import android.support.v4.app.Fragment; 6 | import android.view.LayoutInflater; 7 | import android.view.View; 8 | import android.view.ViewGroup; 9 | 10 | /** 11 | * Created by hugo 12 | * on 08/12/2015. 13 | */ 14 | public class Fragment1 extends Fragment { 15 | 16 | @Nullable 17 | @Override 18 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { 19 | return inflater.inflate(R.layout.view_pager_item_1, container, false); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/src/main/java/com/hmallet/realparallaxdemo/Fragment2.java: -------------------------------------------------------------------------------- 1 | package com.hmallet.realparallaxdemo; 2 | 3 | import android.os.Bundle; 4 | import android.support.annotation.Nullable; 5 | import android.support.v4.app.Fragment; 6 | import android.view.LayoutInflater; 7 | import android.view.View; 8 | import android.view.ViewGroup; 9 | 10 | /** 11 | * Created by hugo 12 | * on 08/12/2015. 13 | */ 14 | public class Fragment2 extends Fragment { 15 | 16 | @Nullable 17 | @Override 18 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { 19 | return inflater.inflate(R.layout.view_pager_item_2, container, false); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/src/main/java/com/hmallet/realparallaxdemo/Fragment3.java: -------------------------------------------------------------------------------- 1 | package com.hmallet.realparallaxdemo; 2 | 3 | import android.os.Bundle; 4 | import android.support.annotation.Nullable; 5 | import android.support.v4.app.Fragment; 6 | import android.view.LayoutInflater; 7 | import android.view.View; 8 | import android.view.ViewGroup; 9 | 10 | /** 11 | * Created by hugo 12 | * on 08/12/2015. 13 | */ 14 | public class Fragment3 extends Fragment { 15 | 16 | @Nullable 17 | @Override 18 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { 19 | return inflater.inflate(R.layout.view_pager_item_3, container, false); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/src/main/java/com/hmallet/realparallaxdemo/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.hmallet.realparallaxdemo; 2 | 3 | import android.graphics.Point; 4 | import android.os.Build; 5 | import android.os.Bundle; 6 | import android.support.v4.app.Fragment; 7 | import android.support.v4.view.PagerAdapter; 8 | import android.support.v4.view.ViewPager; 9 | import android.support.v7.app.AppCompatActivity; 10 | import android.view.Display; 11 | import android.view.View; 12 | import android.view.Menu; 13 | import android.view.MenuItem; 14 | 15 | import com.github.hmallet.realparallaxandroid.RealViewPager; 16 | import com.github.hmallet.realparallaxandroid.RealHorizontalScrollView; 17 | 18 | import java.util.ArrayList; 19 | import java.util.List; 20 | 21 | public class MainActivity extends AppCompatActivity { 22 | 23 | @Override 24 | protected void onCreate(Bundle savedInstanceState) { 25 | super.onCreate(savedInstanceState); 26 | setContentView(R.layout.activity_main); 27 | 28 | RealHorizontalScrollView realHorizontalScrollView = (RealHorizontalScrollView) findViewById(R.id.main_horizontal_scrollview); 29 | final RealViewPager realViewPager = (RealViewPager) findViewById(R.id.main_view_pager); 30 | 31 | List fragments = new ArrayList<>(); 32 | 33 | fragments.add(Fragment.instantiate(this, Fragment1.class.getName())); 34 | fragments.add(Fragment.instantiate(this, Fragment2.class.getName())); 35 | fragments.add(Fragment.instantiate(this, Fragment3.class.getName())); 36 | 37 | Display display = getWindowManager().getDefaultDisplay(); 38 | final Point size = new Point(); 39 | display.getSize(size); 40 | 41 | PagerAdapter realViewPagerAdapter = new MyPagerAdapter(super.getSupportFragmentManager(), fragments); 42 | 43 | // If you don't need to override ScrollListener you can replace this above code by calling `realViewPager.configure(realViewPagerAdapter)` 44 | realViewPager.setAdapter(realViewPagerAdapter); 45 | 46 | // You must set your RealHorizontalScrollView to your RealViewPager 47 | realViewPager.configureWithMyListener(realHorizontalScrollView); 48 | 49 | // If you need to override ScrollListener don't forget to add `manageScrollWithMyListeners` 50 | if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { 51 | realViewPager.setOnScrollChangeListener(new View.OnScrollChangeListener() { 52 | @Override 53 | public void onScrollChange(View v, int scrollX, int scrollY, int oldScrollX, int oldScrollY) { 54 | realViewPager.manageScrollWithMyListeners(scrollX, 0); 55 | // place your code here 56 | } 57 | }); 58 | } else { 59 | realViewPager.setOnPageChangeListener(new ViewPager.OnPageChangeListener() { 60 | @Override 61 | public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { 62 | realViewPager.manageScrollWithMyListeners(positionOffsetPixels, position); 63 | // place your code here 64 | } 65 | 66 | @Override 67 | public void onPageSelected(int position) { 68 | // nothing to do from lib 69 | // place your code heremes 70 | } 71 | 72 | @Override 73 | public void onPageScrollStateChanged(int state) { 74 | // nothing to do from lib 75 | // place your code here 76 | } 77 | }); 78 | } 79 | } 80 | 81 | @Override 82 | public boolean onCreateOptionsMenu(Menu menu) { 83 | // Inflate the menu; this adds items to the action bar if it is present. 84 | getMenuInflater().inflate(R.menu.menu_main, menu); 85 | return true; 86 | } 87 | 88 | @Override 89 | public boolean onOptionsItemSelected(MenuItem item) { 90 | // Handle action bar item clicks here. The action bar will 91 | // automatically handle clicks on the Home/Up button, so long 92 | // as you specify a parent activity in AndroidManifest.xml. 93 | int id = item.getItemId(); 94 | 95 | //noinspection SimplifiableIfStatement 96 | if (id == R.id.action_settings) { 97 | return true; 98 | } 99 | 100 | return super.onOptionsItemSelected(item); 101 | } 102 | } 103 | -------------------------------------------------------------------------------- /app/src/main/java/com/hmallet/realparallaxdemo/MyPagerAdapter.java: -------------------------------------------------------------------------------- 1 | package com.hmallet.realparallaxdemo; 2 | 3 | import android.support.v4.app.Fragment; 4 | import android.support.v4.app.FragmentManager; 5 | import android.support.v4.app.FragmentPagerAdapter; 6 | 7 | import java.util.List; 8 | 9 | /** 10 | * Created by hugo 11 | * on 08/12/2015. 12 | */ 13 | public class MyPagerAdapter extends FragmentPagerAdapter { 14 | 15 | private final List fragments; 16 | 17 | public MyPagerAdapter(FragmentManager fm, List fragments) { 18 | super(fm); 19 | this.fragments = fragments; 20 | } 21 | 22 | @Override 23 | public Fragment getItem(int position) { 24 | return (Fragment) this.fragments.get(position); 25 | } 26 | 27 | @Override 28 | public int getCount() { 29 | return this.fragments.size(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /app/src/main/res/layout/content_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 17 | 18 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /app/src/main/res/layout/view_pager_item_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 14 | 15 | -------------------------------------------------------------------------------- /app/src/main/res/layout/view_pager_item_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 14 | 15 | -------------------------------------------------------------------------------- /app/src/main/res/layout/view_pager_item_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 14 | 15 | -------------------------------------------------------------------------------- /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/mallethugo/RealParallaxAndroid/b5e9bba81b189a623b97037b7cc414ec3b92f518/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mallethugo/RealParallaxAndroid/b5e9bba81b189a623b97037b7cc414ec3b92f518/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mallethugo/RealParallaxAndroid/b5e9bba81b189a623b97037b7cc414ec3b92f518/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mallethugo/RealParallaxAndroid/b5e9bba81b189a623b97037b7cc414ec3b92f518/app/src/main/res/mipmap-xxhdpi/background.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mallethugo/RealParallaxAndroid/b5e9bba81b189a623b97037b7cc414ec3b92f518/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mallethugo/RealParallaxAndroid/b5e9bba81b189a623b97037b7cc414ec3b92f518/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | > 2 | 3 | 11 | 12 | -------------------------------------------------------------------------------- /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 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | RealParallaxDemo 3 | Settings 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 17 | 18 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /library/src/test/java/com/github/hmallet/realparallaxandroid/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.github.hmallet.realparallaxandroid; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /realparallaxandroid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mallethugo/RealParallaxAndroid/b5e9bba81b189a623b97037b7cc414ec3b92f518/realparallaxandroid.png -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':library' 2 | --------------------------------------------------------------------------------