public class MyFragment
extends Fragment
Constructor and Description |
---|
MyFragment() |
Modifier and Type | Method and Description |
---|---|
static MyFragment |
newInstance(int index)
Static factory method that takes an int parameter,
initializes the fragment's arguments, and returns the
new fragment to the client.
|
public static MyFragment newInstance(int index)
index
- the index