本文整理汇总了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);
}
示例2: OnTabUnselected
public void OnTabUnselected(ActionBar.Tab tab, FragmentTransaction ft)
{
this.RunOnUiThread(() =>
{
Toast.MakeText(this, "OnTabUnselected " + tab.Text, ToastLength.Long).Show();
});
}
示例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);
}
}
示例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);
}
示例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);
}
}
示例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);
}
}
示例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;
}
}
示例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);
}
示例9: OnTabReselected
public void OnTabReselected (ActionBar.Tab tab, FragmentTransaction ft)
{
Log.Debug (Tag, "The tab {0} was re-selected.", tab.Text);
}
示例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();
}
示例11: OnTabSelected
public void OnTabSelected(ActionBar.Tab tab, FragmentTransaction ft)
{
//Console.WriteLine("ViewPagerAdapter - OnTabSelected tab: {0}", tab.Text);
_viewPager.SetCurrentItem(tab.Position, true);
}
示例12: OnTabReselected
public void OnTabReselected (ActionBar.Tab tab, FragmentTransaction ft){
fragment.OnResume ();
}
示例13: TabEventArgs
public TabEventArgs(FragmentTransaction fragmentTransaction)
{
FragmentTransaction = fragmentTransaction;
}
示例14: OnTabUnselected
public void OnTabUnselected(ActionBar.Tab tab, FragmentTransaction ft)
{
var h = TabUnselected;
if (h != null)
h (tab, new ActionBar.TabEventArgs (ft));
}
示例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);
}