当前位置: 首页>>代码示例>>C#>>正文


C# FragmentTransaction类代码示例

本文整理汇总了C#中FragmentTransaction的典型用法代码示例。如果您正苦于以下问题:C# FragmentTransaction类的具体用法?C# FragmentTransaction怎么用?C# FragmentTransaction使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


FragmentTransaction类属于命名空间,在下文中一共展示了FragmentTransaction类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: OnTabSelected

		public void OnTabSelected (ActionBar.Tab tab, FragmentTransaction ft) 
		{
			TitlesFragment titleFrag = (TitlesFragment) FragmentManager.FindFragmentById (Resource.Id.frag_title);
			titleFrag.PopulateTitles (tab.Position);
		
			titleFrag.SelectPosition (0);
		}
开发者ID:CHANDAN145,项目名称:monodroid-samples,代码行数:7,代码来源:MainActivity.cs

示例2: OnTabUnselected

 public void OnTabUnselected(ActionBar.Tab tab, FragmentTransaction ft)
 {
     this.RunOnUiThread(() =>
     {
         Toast.MakeText(this, "OnTabUnselected " + tab.Text, ToastLength.Long).Show();
     });
 }
开发者ID:cirk0r,项目名称:PW,代码行数:7,代码来源:MainActivity.cs

示例3: OnTabSelected

 public void OnTabSelected(ActionBar.Tab tab, FragmentTransaction ft)
 {
     StationInventoryListFragment fragment = tab.Tag as StationInventoryListFragment;
     if (fragment != null)
     {
         ft.Replace(R.Ids.stationInventoryFragmentContainer, fragment);
     }
 }
开发者ID:sschocke,项目名称:JGCompanion,代码行数:8,代码来源:StationInventoryActivity.cs

示例4: OnTabSelected

		public void OnTabSelected (ActionBar.Tab tab, FragmentTransaction ft)
		{
			FragmentManager.PopBackStack (null, FragmentManager.PopBackStackInclusive);

			Log.Debug (Tag, "The tab {0} has been selected.", tab.Text);
			Fragment frag = _fragments [tab.Position];
			ft.Replace (Resource.Id.content_frame, frag);
		}
开发者ID:ctsxamarintraining,项目名称:Xamarin,代码行数:8,代码来源:MainActivity.cs

示例5: OnTabSelected

 public void OnTabSelected(ActionBar.Tab tab, FragmentTransaction ft)
 {
     Fragment fragment = tab.Tag as Fragment;
     if (fragment != null)
     {
         ft.Replace(R.Ids.itemDetailFragmentContainer, fragment);
     }
 }
开发者ID:sschocke,项目名称:JGCompanion,代码行数:8,代码来源:ItemDetailActivity.cs

示例6: OnTabSelected

 public void OnTabSelected(ActionBar.Tab tab, FragmentTransaction ft)
 {
     PilotListCounterFragment fragment = tab.Tag as PilotListCounterFragment;
     if (fragment != null)
     {
         ft.Replace(R.Ids.pilotsOnlineFragmentContainer, fragment);
     }
 }
开发者ID:sschocke,项目名称:JGCompanion,代码行数:8,代码来源:OnlinePilotsActivity.cs

示例7: OnTabSelected

        public void OnTabSelected(ActionBar.Tab tab, FragmentTransaction ft)
        {
            switch (tab.Position)
            {
                case 0:
                    //Show content of tab1
                    break;

                case 1:
                    //Show content of tab2
                    break;

                default:
                    break;
            }
        }
开发者ID:razazulu,项目名称:MohunkyTimer,代码行数:16,代码来源:MainActivity.cs

示例8: OnTabUnselected

		public void OnTabUnselected (ActionBar.Tab tab, FragmentTransaction ft)
		{
			// perform any extra work associated with saving fragment state here.
			Log.Debug (Tag, "The tab {0} as been unselected.", tab.Text);
		}
开发者ID:kruc1,项目名称:xamarin-evolve-2014,代码行数:5,代码来源:MainActivity.cs

示例9: OnTabReselected

		public void OnTabReselected (ActionBar.Tab tab, FragmentTransaction ft)
		{
			Log.Debug (Tag, "The tab {0} was re-selected.", tab.Text);
		}
开发者ID:kruc1,项目名称:xamarin-evolve-2014,代码行数:4,代码来源:MainActivity.cs

示例10: onCreate

		protected internal override void onCreate(Bundle savedInstanceState)
		{
			base.onCreate(savedInstanceState);

			// Remove title bar
			requestWindowFeature(Window.FEATURE_NO_TITLE);

			loadInterface();

			if (savedInstanceState == null)
			{
				mFragmentTransaction = FragmentManager.beginTransaction();
				initSubscriberFragment();
				initPublisherFragment();
				initPublisherStatusFragment();
				initSubscriberQualityFragment();
				mFragmentTransaction.commitAllowingStateLoss();
			}

			mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);

			sessionConnect();
		}
开发者ID:moljac,项目名称:Samples.Data.Porting,代码行数:23,代码来源:UIActivity.cs

示例11: OnTabSelected

 public void OnTabSelected(ActionBar.Tab tab, FragmentTransaction ft)
 {
     //Console.WriteLine("ViewPagerAdapter - OnTabSelected tab: {0}", tab.Text);
     _viewPager.SetCurrentItem(tab.Position, true);
 }
开发者ID:pascalfr,项目名称:MPfm,代码行数:5,代码来源:MainTabStatePagerAdapter.cs

示例12: OnTabReselected

			public void OnTabReselected (ActionBar.Tab tab, FragmentTransaction ft){
				fragment.OnResume ();
			}
开发者ID:seipekm,项目名称:MonoBrick-Communication-Software,代码行数:3,代码来源:TabActivity.cs

示例13: TabEventArgs

 public TabEventArgs(FragmentTransaction fragmentTransaction)
 {
     FragmentTransaction = fragmentTransaction;
 }
开发者ID:yudhitech,项目名称:xamarin-android,代码行数:4,代码来源:ActionBar.cs

示例14: OnTabUnselected

 public void OnTabUnselected(ActionBar.Tab tab, FragmentTransaction ft)
 {
     var h = TabUnselected;
     if (h != null)
         h (tab, new ActionBar.TabEventArgs (ft));
 }
开发者ID:yudhitech,项目名称:xamarin-android,代码行数:6,代码来源:ActionBar.cs

示例15: OnTabSelected

		public void OnTabSelected (ActionBar.Tab tab, FragmentTransaction ft)
		{
			SupportFragmentManager.PopBackStack (null, FragmentManager.PopBackStackInclusive);
			content.SetCurrentItem (tab.Position, true);
			Log.Debug (Tag, "The tab {0} as been selected.", tab.Text);
		}
开发者ID:kruc1,项目名称:xamarin-evolve-2014,代码行数:6,代码来源:MainActivity.cs


注:本文中的FragmentTransaction类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。