コード例 #1
0
 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();
     }
 }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
 public MyOnItemSelectedListener(AppUsageStatisticsFragment myFragment)
 {
     this.myFragment = myFragment;
     strings         = myFragment.Resources.GetStringArray(Resource.Array.action_list);
 }
コード例 #4
0
			public MyOnItemSelectedListener (AppUsageStatisticsFragment myFragment)
			{
				this.myFragment = myFragment;
				strings = myFragment.Resources.GetStringArray (Resource.Array.action_list);
			}
コード例 #5
0
		/// <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;
		}