Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

ParallaxViewController

Florent CHAMPIGNY edited this page Aug 3, 2015 · 1 revision

ParallaxViewController can add a parallax effect on ScrollView childs

Usage :

  • ScrollView : registerParallax()
  • ScrollView childs : parallaxY(float)
<com.github.florent37.carpaccio.Carpaccio
        app:register="
            com.github.florent37.carpaccio.controllers.ParallaxViewController;
        ">

        <ScrollView
                    android:tag="registerParallax()">

              <View
                    android:tag="
                        parallaxY(0.5);
                    " />

              <View
                    android:tag="
                        parallaxY(1.5);
                    " />

        </ScrollView

</com.github.florent37.carpaccio.Carpaccio>

Video

Clone this wiki locally