NewInstance() публичный статический Метод

public static NewInstance ( ) : FirstFragment
Результат FirstFragment
Пример #1
0
        private void showTab1()
        {
            deselectAll();

            headingText.Text = "Tab 1";

            tab1Button.SetColorFilter(selectedColor);
            tab1Text.SetTextColor(selectedColor);
            // Make new fragment to show this selection.
            Fragment fragment = FirstFragment.NewInstance();

            // Execute a transaction, replacing any existing
            showFragment(fragment);
        }