Back to project page pawang-ujan.
The source code is released under:
Apache License
If you think the Android project pawang-ujan 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.salatiga.code.adapter; /*from w w w . ja va2s .c o m*/ import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; import com.salatiga.code.CuacaFragment; import com.salatiga.code.GempaFragment; /** * Class Tab Adapter aplikasi * @author Hendro Steven Tampake * @version 1.0 * */ public class TabsPagerAdapter extends FragmentPagerAdapter { public TabsPagerAdapter(FragmentManager fm) { super(fm); } @Override public Fragment getItem(int index) { switch (index) { case 0: return new CuacaFragment(); case 1: return new GempaFragment(); } return null; } @Override public int getCount() { return 2; } }