Back to project page Android-ExtendedViewPager.
The source code is released under:
MIT License
If you think the Android project Android-ExtendedViewPager 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 com.onatm.sample.extendedviewpager; // w w w . j a v a 2s . co m import android.annotation.SuppressLint; 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.TextView; @SuppressLint("ValidFragment") public class DescriptionFragment extends Fragment { private int mDescription; public DescriptionFragment(int description) { mDescription = description; } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { ViewGroup mRootView = (ViewGroup) inflater.inflate(R.layout.fragment_description, container, false); TextView mTextView = (TextView) mRootView.findViewById(R.id.txt_description); mTextView.setText(mDescription); return mRootView; } }