Back to project page FillingEffect.
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.
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; } }