package uk.co.chrisjenx.paralloidexample;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ScrollView;

import uk.co.chrisjenx.paralloid.Parallaxor;

/**
 * A dummy fragment representing a section of the app, but that simply
 * displays dummy text.
 */
public class ParallaxBackgroundFragment extends Fragment {

    public ParallaxBackgroundFragment() {
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View rootView = inflater.inflate(R.layout.fragment_parallax_background, container, false);
        ScrollView scrollView = (ScrollView) rootView.findViewById(R.id.scroll_view);
        if (scrollView instanceof Parallaxor) {
            ((Parallaxor) scrollView).parallaxViewBackgroundBy(scrollView, getResources().getDrawable(R.drawable.example_image), .2f);
        }

        return rootView;
    }
}
@@ -198,42 +198,8 @@
 oup;
-%0Aimport android.widget.ScrollView;
 %0A%0Aim
@@ -229,24 +229,30 @@
 ralloid.
+views.
 Parallax
 or;%0A%0A/**
@@ -243,18 +243,26 @@
 Parallax
-or
+ScrollView
 ;%0A%0A/**%0A 
@@ -722,16 +722,24 @@
         
+Parallax
 ScrollVi
@@ -755,16 +755,24 @@
 View = (
+Parallax
 ScrollVi
@@ -828,12 +828,8 @@
     
-if (
 scro
@@ -838,71 +838,8 @@
 View
- instanceof Parallaxor) %7B%0A            ((Parallaxor) scrollView)
 .par
@@ -935,18 +935,8 @@
 2f);
-%0A        %7D
 %0A%0A  

update examples