Back to project page Android-ActionBarSherlock-ViewPager-Tabs-Tutorial.
The source code is released under:
Apache License
If you think the Android project Android-ActionBarSherlock-ViewPager-Tabs-Tutorial 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.androidbegin.absviewpagertutorial; //from ww w . j a va 2 s .c om import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.actionbarsherlock.app.SherlockFragment; import com.actionbarsherlock.app.SherlockFragmentActivity; public class FragmentTab3 extends SherlockFragment { @Override public SherlockFragmentActivity getSherlockActivity() { return super.getSherlockActivity(); } @Override public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Get the view from fragmenttab3.xml View view = inflater.inflate(R.layout.fragmenttab3, container, false); return view; } @Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); setUserVisibleHint(true); } }