Class CustomFragmentTabLayout
Inheritance
System.Object
CustomFragmentTabLayout
Implements
Google.Android.Material.Tabs.TabLayout.IOnTabSelectedListener
Android.Runtime.IJavaObject
System.IDisposable
Java.Interop.IJavaPeerable
Assembly: PDFViewCtrlTools.dll
Syntax
public class CustomFragmentTabLayout : TabLayout
Constructors
CustomFragmentTabLayout(Context)
Declaration
public CustomFragmentTabLayout(Context context)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
CustomFragmentTabLayout(Context, IAttributeSet)
Declaration
public CustomFragmentTabLayout(Context context, IAttributeSet attrs)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
Android.Util.IAttributeSet |
attrs |
|
CustomFragmentTabLayout(Context, IAttributeSet, Int32)
Declaration
public CustomFragmentTabLayout(Context context, IAttributeSet attrs, int defStyleAttr)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
Android.Util.IAttributeSet |
attrs |
|
System.Int32 |
defStyleAttr |
|
CustomFragmentTabLayout(IntPtr, JniHandleOwnership)
Declaration
protected CustomFragmentTabLayout(IntPtr javaReference, JniHandleOwnership transfer)
Parameters
Type |
Name |
Description |
System.IntPtr |
javaReference |
|
Android.Runtime.JniHandleOwnership |
transfer |
|
Properties
CurrentFragment
Declaration
public virtual Fragment CurrentFragment { get; }
Property Value
Type |
Description |
AndroidX.Fragment.App.Fragment |
|
CurrentTabTag
Declaration
public virtual string CurrentTabTag { get; }
Property Value
Type |
Description |
System.String |
|
JniPeerMembers
Declaration
public override JniPeerMembers JniPeerMembers { get; }
Property Value
Type |
Description |
Java.Interop.JniPeerMembers |
|
LiveFragments
Declaration
public virtual IList<Fragment> LiveFragments { get; }
Property Value
Type |
Description |
System.Collections.Generic.IList<AndroidX.Fragment.App.Fragment> |
|
MContainerId
Declaration
protected int MContainerId { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
MContext
Declaration
protected Context MContext { get; set; }
Property Value
Type |
Description |
Android.Content.Context |
|
MFragmentManager
Declaration
protected FragmentManager MFragmentManager { get; set; }
Property Value
Type |
Description |
AndroidX.Fragment.App.FragmentManager |
|
MLastTabInfo
Declaration
protected CustomFragmentTabLayout.TabInfo MLastTabInfo { get; set; }
Property Value
MShouldMemorizeTab
Declaration
protected bool MShouldMemorizeTab { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
MTabs
Declaration
protected IList MTabs { get; set; }
Property Value
Type |
Description |
System.Collections.IList |
|
ThresholdClass
Declaration
protected override IntPtr ThresholdClass { get; }
Property Value
Type |
Description |
System.IntPtr |
|
ThresholdType
Declaration
protected override Type ThresholdType { get; }
Property Value
Type |
Description |
System.Type |
|
Methods
AddTab(TabLayout.Tab, Class, Bundle)
Declaration
public virtual void AddTab(TabLayout.Tab tab, Class _class, Bundle args)
Parameters
Type |
Name |
Description |
Google.Android.Material.Tabs.TabLayout.Tab |
tab |
|
Java.Lang.Class |
_class |
|
Android.OS.Bundle |
args |
|
GetFragmentByTag(String)
Declaration
public virtual Fragment GetFragmentByTag(string tag)
Parameters
Type |
Name |
Description |
System.String |
tag |
|
Returns
Type |
Description |
AndroidX.Fragment.App.Fragment |
|
GetTabByTag(String)
Declaration
public virtual TabLayout.Tab GetTabByTag(string tag)
Parameters
Type |
Name |
Description |
System.String |
tag |
|
Returns
Type |
Description |
Google.Android.Material.Tabs.TabLayout.Tab |
|
OnTabReselected(TabLayout.Tab)
Declaration
public virtual void OnTabReselected(TabLayout.Tab tab)
Parameters
Type |
Name |
Description |
Google.Android.Material.Tabs.TabLayout.Tab |
tab |
|
OnTabSelected(TabLayout.Tab)
Declaration
public virtual void OnTabSelected(TabLayout.Tab tab)
Parameters
Type |
Name |
Description |
Google.Android.Material.Tabs.TabLayout.Tab |
tab |
|
OnTabUnselected(TabLayout.Tab)
Declaration
public virtual void OnTabUnselected(TabLayout.Tab tab)
Parameters
Type |
Name |
Description |
Google.Android.Material.Tabs.TabLayout.Tab |
tab |
|
RemoveAllFragments()
Declaration
public virtual void RemoveAllFragments()
ReplaceTag(TabLayout.Tab, String)
Declaration
public virtual void ReplaceTag(TabLayout.Tab tab, string newTag)
Parameters
Type |
Name |
Description |
Google.Android.Material.Tabs.TabLayout.Tab |
tab |
|
System.String |
newTag |
|
SetDebug(Boolean)
Declaration
public static void SetDebug(bool debug)
Parameters
Type |
Name |
Description |
System.Boolean |
debug |
|
SetOnTabModificationListener(CustomFragmentTabLayout.IOnTabModificationListener)
Declaration
public virtual void SetOnTabModificationListener(CustomFragmentTabLayout.IOnTabModificationListener listener)
Parameters
Setup(Context, FragmentManager, Int32)
Declaration
public virtual void Setup(Context context, FragmentManager manager, int containerId)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
AndroidX.Fragment.App.FragmentManager |
manager |
|
System.Int32 |
containerId |
|
StartFragment(String)
Declaration
public virtual void StartFragment(string tag)
Parameters
Type |
Name |
Description |
System.String |
tag |
|
Events
TabAdded
Declaration
public event EventHandler<CustomFragmentTabLayout.TabAddedEventArgs> TabAdded
Event Type
TabRemoved
Declaration
public event EventHandler<CustomFragmentTabLayout.TabRemovedEventArgs> TabRemoved
Event Type
Implements
Google.Android.Material.Tabs.TabLayout.IOnTabSelectedListener
Android.Runtime.IJavaObject
System.IDisposable
Java.Interop.IJavaPeerable