Created
March 2, 2015 14:32
-
-
Save fiskurgit/3a782a285b4f433d5c28 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package eu.fiskur.pennineway.tutorial; | |
import android.os.Bundle; | |
import android.support.v4.app.Fragment; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
public class TutorialPane extends Fragment{ | |
final static String LAYOUT_ID = "layoutid"; | |
public static TutorialPane newInstance(int layoutId) { | |
TutorialPane pane = new TutorialPane(); | |
Bundle args = new Bundle(); | |
args.putInt(LAYOUT_ID, layoutId); | |
pane.setArguments(args); | |
return pane; | |
} | |
@Override | |
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | |
ViewGroup rootView = (ViewGroup) inflater.inflate(getArguments().getInt(LAYOUT_ID, -1), container, false); | |
return rootView; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment