Created
December 30, 2016 09:05
-
-
Save manishkpr/32f59c388274be7c9c7e1a6da4773f62 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 com.manishkpr.viewpager; | |
import android.content.Context; | |
import android.os.Bundle; | |
import android.support.v4.app.Fragment; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
public class LayoutOne extends Fragment { | |
public static Fragment newInstance(Context context) { | |
LayoutOne f = new LayoutOne(); | |
return f; | |
} | |
@Override | |
public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) { | |
ViewGroup root = (ViewGroup) inflater.inflate(R.layout.layout_one, null); | |
return root; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment