Android Open Source - Android-ExtendedViewPager Description Fragment






From Project

Back to project page Android-ExtendedViewPager.

License

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.

Java Source Code

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;
    }
}




Java Source Code List

com.onatm.library.extendedviewpager.ParallaxImageViewPager.java
com.onatm.sample.extendedviewpager.DescriptionFragment.java
com.onatm.sample.extendedviewpager.MainActivity.java
com.onatm.sample.extendedviewpager.adapter.DescriptionPagerAdapter.java