Android Open Source - FillingEffect Fragment Main






From Project

Back to project page FillingEffect.

License

The source code is released under:

GNU General Public License

If you think the Android project FillingEffect listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package it.federico.com.fillingeffect;
//from w  ww .  j  av  a2 s.com


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import it.federico.com.fillingeffect.views.Scroller;


public class FragmentMain extends Fragment {

    private Scroller mScroller;

    public static FragmentMain newInstance() {
        FragmentMain fragment = new FragmentMain();
        return fragment;
    }

    public FragmentMain() {
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view = createView(inflater, container);
        buildViews();
        return view;
    }

    private void buildViews() {
        mScroller.initializeScrollView(0);
    }

    private View createView(final LayoutInflater inflater, final ViewGroup container) {
        View view = inflater.inflate(R.layout.fragment_main, container, false);
        mScroller = (Scroller) view.findViewById(R.id.scroller);
        return view;
    }


}




Java Source Code List

it.federico.com.fillingeffect.ActivityMain.java
it.federico.com.fillingeffect.FragmentMain.java
it.federico.com.fillingeffect.listener.ScrollViewListener.java
it.federico.com.fillingeffect.views.BottomCropImage.java
it.federico.com.fillingeffect.views.ObservableScrollView.java
it.federico.com.fillingeffect.views.Scroller.java