protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.activity_app_usage_statistics); if (savedInstanceState == null) { FragmentManager.BeginTransaction() .Add(Resource.Id.container, AppUsageStatisticsFragment.NewInstance()) .Commit(); } }
/// <summary> /// Use this factory method to create a new instance of this fragment using the provided parameters. /// </summary> /// <returns>A new instance of fragment <see cref="AppUsageStatistics.AppUsageStatisticsFragment"/>.</returns> public static AppUsageStatisticsFragment NewInstance() { var fragment = new AppUsageStatisticsFragment(); return(fragment); }
public MyOnItemSelectedListener(AppUsageStatisticsFragment myFragment) { this.myFragment = myFragment; strings = myFragment.Resources.GetStringArray(Resource.Array.action_list); }
public MyOnItemSelectedListener (AppUsageStatisticsFragment myFragment) { this.myFragment = myFragment; strings = myFragment.Resources.GetStringArray (Resource.Array.action_list); }
/// <summary> /// Use this factory method to create a new instance of this fragment using the provided parameters. /// </summary> /// <returns>A new instance of fragment <see cref="AppUsageStatistics.AppUsageStatisticsFragment"/>.</returns> public static AppUsageStatisticsFragment NewInstance () { var fragment = new AppUsageStatisticsFragment (); return fragment; }