Android Open Source - llibre2014 Llibre Activity






From Project

Back to project page llibre2014.

License

The source code is released under:

GNU General Public License

If you think the Android project llibre2014 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 es.rpallas.llibre2014;
//from   w ww.j a va 2  s  . c  o m
import android.os.Bundle;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPager;
import android.support.v7.app.ActionBarActivity;
import android.view.Window;
import es.rpallas.llibre2014.adapter.SectionsPagerAdapter;


public class LlibreActivity extends ActionBarActivity {

    /**
     * The {@link android.support.v4.view.PagerAdapter} that will provide
     * fragments for each of the sections. We use a
     * {@link FragmentPagerAdapter} derivative, which will keep every
     * loaded fragment in memory. If this becomes too memory intensive, it
     * may be best to switch to a
     * {@link android.support.v4.app.FragmentStatePagerAdapter}.
     */
    SectionsPagerAdapter mSectionsPagerAdapter;

    /**
     * The {@link ViewPager} that will host the section contents.
     */
    ViewPager mViewPager;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getSupportActionBar().hide();

        setContentView(R.layout.activity_llibre);



        // Create the adapter that will return a fragment for each of the three
        // primary sections of the activity.
        mSectionsPagerAdapter = new SectionsPagerAdapter(getSupportFragmentManager(),getApplicationContext());

        // Set up the ViewPager with the sections adapter.
        mViewPager = (ViewPager) findViewById(R.id.pager);
        mViewPager.setAdapter(mSectionsPagerAdapter);

    }

    

    

   

}




Java Source Code List

es.rpallas.llibre2014.AboutFragment.java
es.rpallas.llibre2014.LlibreActivity.java
es.rpallas.llibre2014.LlibreFragment.java
es.rpallas.llibre2014.ScheduleFragment.java
es.rpallas.llibre2014.adapter.ScheduleListViewAdapter.java
es.rpallas.llibre2014.adapter.SectionsPagerAdapter.java
es.rpallas.llibre2014.data.MockData.java
es.rpallas.llibre2014.models.Event.java