Giter Club home page Giter Club logo

viewpager-transformation's Introduction

ViewPagerTransformations

Why use dependencies when you create your own transformations ?

In this post i am gonna show you some view pager animations. Animation in view pager is implemented using PageTransformer interface which is called whenever we slide view pager. It is called twice for every slide event, because atmost two pages are visible on the screen. The position for first page is between (-1,0) and second page is (0,1). In the idle state , 0 being the position of the page we are currenting viewing.

By implementing this you can achieve these amazing transformations for Viewpager by your own and also you can create your own transformations and name them as you wish.

You can download the latest sample APK from Google Play store:

Android app on Google Play

You can also see full video clip of all the transformations on YOUTUBE.

List of Transformations

Here is the list of transformations which you can check by clicking them :

viewpager-transformation's People

Contributors

dipanshukr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

viewpager-transformation's Issues

How to Use Pager Transformation files for Vertical ViewPager2

Hi , Thanks for this amazing Repo, I am happy to use this but in my requirement ViewPager is Vertical , So could you please tell me how can i use these Transformation files.If i use same files for Vertical Viewpager2 transformation is unexpecting moving.

Thanks ๐Ÿ‘ ๐Ÿ’ฏ

use only 1 fragment for many items

Hi, i want to use only 1 fragment in pager adapter and i have 20 objects coming from server i want when user swipe from 1 to 2nd the 1st fragment reuse and load data of 2nd object. Basically i cannot this logic:
pagerAdapter.addFragments(new FirstFragment());
pagerAdapter.addFragments(new SecondFragment());
pagerAdapter.addFragments(new ThirdFragment());
pagerAdapter.addFragments(new FourthFragment());
pagerAdapter.addFragments(new FifthFragment());
pagerAdapter.addFragments(new SixthFragment());
pagerAdapter.addFragments(new SeventhFragment());
pagerAdapter.addFragments(new EighthFragment());
pagerAdapter.addFragments(new NinthFragment());
pagerAdapter.addFragments(new TenthFragment());

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.