ChenSiLiang / ScaleYViewPager

a ViewPager with a scaleY animator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ScaleYViewPager

a ViewPager with a scaleY animator

#Setup

  • In Eclipse, just import the library as an Android library project. Project > Clean to generate the binaries you need, like R.java, etc.
  • Then, just add SlidingMenu as a dependency to your existing project and you're good to go!

#XML Usage `

<com.usst.csl.viewpagergallery.ui.ScaleYViewPager
   android:id="@+id/pager"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    scaleyviewpager:offscreenPageLimit="3"
    scaleyviewpager:paddingLeft="130"
    scaleyviewpager:paddingRight="130"
    scaleyviewpager:pagerMargin="-350" />

`

NOTE:

  • offscreenPageLimit : the offscreen page number, can simply not specify.
  • pageMargin:the margin between pages,can simply not specify.
  • paddingLeft:set the left padding of center pager,according to your device.
  • paddingRight:set the right padding of center pager,according to your device.

#Developed By

  • ChenSL

#LOOK how it looks like

About

a ViewPager with a scaleY animator


Languages

Language:Java 100.0%