public static SecondFragment NewInstance()
        {
            var fragment = new SecondFragment {
                Arguments = new Bundle()
            };

            return(fragment);
        }
Пример #2
0
        private void showTab2()
        {
            deselectAll();

            headingText.Text = "Tab 2";

            tab2Button.SetColorFilter(selectedColor);
            tab2Text.SetTextColor(selectedColor);
            // Make new fragment to show this selection.
            Fragment fragment = SecondFragment.NewInstance();

            // Execute a transaction, replacing any existing
            showFragment(fragment);
        }
 public static SecondFragment NewInstance()
 {
     var fragment = new SecondFragment {Arguments = new Bundle()};
     return fragment;
 }