Android Open Source - InfiniteViewPager Main Activity






From Project

Back to project page InfiniteViewPager.

License

The source code is released under:

GNU General Public License

If you think the Android project InfiniteViewPager 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

//  InfiniteViewPager - An infinitely scrolling view pager.
//  Copyright (C) 2014  Angelo Rohit Joseph Pulikotil
///*from  w  ww.  j av  a  2 s .  c o  m*/
//  This program is free software: you can redistribute it and/or modify
//  it under the terms of the GNU General Public License as published by
//  the Free Software Foundation, either version 3 of the License, or
//  (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
//
//  You should have received a copy of the GNU General Public License
//  along with this program.  If not, see <http://www.gnu.org/licenses/>.

package com.angelo.demo.activity;

import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import com.angelo.demo.fragment.MainFragment;
import com.angelo.demo.R;

/**
 * The Main Activity for this application.
 *  @author angelo
 */
public class MainActivity extends ActionBarActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        if (savedInstanceState == null) {
            getSupportFragmentManager().beginTransaction()
                    .add(R.id.container, new MainFragment())
                    .commit();
        }
    }
}




Java Source Code List

com.angelo.demo.activity.MainActivity.java
com.angelo.demo.adapter.InfiniteViewPagerAdapter.java
com.angelo.demo.fragment.MainFragment.java
com.angelo.demo.fragment.TemplateFragment.java
com.angelo.demo.widget.InfiniteViewPager.java