public abstract class TuFragment extends TuSdkFragment
构造器和说明 |
---|
TuFragment() |
限定符和类型 | 方法和说明 |
---|---|
void |
alert(TuSdkViewHelper.AlertDelegate delegate,
int titleId,
int msgId)
提示用户信息
|
void |
alert(TuSdkViewHelper.AlertDelegate delegate,
java.lang.String title,
java.lang.String msg)
提示用户信息
|
void |
filpModalNavigationActivity(androidx.fragment.app.Fragment fragment,
boolean isDestory)
翻转启动新的Activity
|
void |
filpModalNavigationActivity(androidx.fragment.app.Fragment fragment,
boolean wantFullScreen,
boolean isDestory)
翻转启动新的Activity
|
void |
hubDismiss()
使用动画关闭
|
void |
hubDismissRightNow()
立即关闭
|
void |
hubError(int statusResId)
显示错误信息 并自动关闭
|
void |
hubError(java.lang.String status)
显示错误信息 并自动关闭
|
void |
hubStatus(int statusResId)
显示信息
|
void |
hubStatus(java.lang.String status)
显示信息
|
void |
hubSuccess(int statusResId)
显示成功信息 并自动关闭
|
void |
hubSuccess(java.lang.String status)
显示成功信息 并自动关闭
|
protected void |
initCreateView()
初始化创建视图
|
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState)
创建视图
|
void |
onDetach() |
void |
presentActivity(TuSdkIntent intent,
boolean isDestory)
开启新的Activity
|
void |
presentModalNavigationActivity(androidx.fragment.app.Fragment fragment)
弹出新的Activity
|
void |
presentModalNavigationActivity(androidx.fragment.app.Fragment fragment,
ActivityAnimType presentAnim,
ActivityAnimType dismissAnim,
boolean wantFullScreen)
启动新的Activity
|
void |
presentModalNavigationActivity(androidx.fragment.app.Fragment fragment,
boolean wantFullScreen)
弹出新的Activity
|
void |
pushModalNavigationActivity(androidx.fragment.app.Fragment fragment)
弹出新的Activity,左右切换
|
void |
pushModalNavigationActivity(androidx.fragment.app.Fragment fragment,
boolean wantFullScreen)
弹出新的Activity,左右切换
|
TuSdkNavigatorButton |
setNavLeftButton(int titleId)
设置导航左边按钮
|
TuSdkNavigatorButton |
setNavLeftButton(java.lang.String title)
设置导航左边按钮
|
TuSdkNavigatorButton |
setNavLeftButton(java.lang.String title,
int textColor)
设置导航左边按钮及文本颜色
|
TuSdkNavigatorButton |
setNavLeftHighLightButton(int titleId)
设置导航左边高亮按钮
|
TuSdkNavigatorButton |
setNavLeftHighLightButton(java.lang.String title)
设置导航左边高亮按钮
|
TuSdkNavigatorButton |
setNavRightButton(int titleId)
设置导航右边按钮
|
TuSdkNavigatorButton |
setNavRightButton(java.lang.String title)
设置导航右边按钮
|
TuSdkNavigatorButton |
setNavRightButton(java.lang.String title,
int textColor)
设置导航右边按钮
|
TuSdkNavigatorButton |
setNavRightHighLightButton(int titleId)
设置导航右边高亮按钮
|
TuSdkNavigatorButton |
setNavRightHighLightButton(java.lang.String title)
设置导航右边高亮按钮
|
addOrientationListener, backStackEntryCount, bindSoftInputEvent, dismissActivity, dismissActivityWithAnim, dismissActivityWithAnim, equalViewIds, filpModalNavigationActivity, getDismissAnimType, getNavButton, getOriginFragment, getResColor, getResString, getResString, getResString, getResString, getRootView, getRootViewLayoutId, getSdkActivity, getTitle, getViewById, getViewById, getViewId, isBackButtonShowed, isFragmentPause, isFullScreen, isSupportSlideBack, loadView, navigatorBarBackAction, navigatorBarCancelAction, navigatorBarHeight, navigatorBarLeftAction, navigatorBarLoaded, navigatorBarRightAction, navSearchViewSearch, navSearchViewSetDelegate, navSegmentedAddTexts, navSegmentedAddTexts, navSegmentedSetDelegate, navSegmentedSetected, onAttach, onBackForSlide, onBackPressed, onCreateAnimation, onDestroy, onDestroyView, onFragmentAnimationEnd, onKeyUp, onNavigatorBarButtonClicked, onOrientationChanged, onPause, onPauseFragment, onPreDraw, onRefreshData, onResume, onResumeFragment, popFragment, popFragment, popFragmentRoot, presentActivity, presentActivity, presentModalNavigationActivity, presentModalNavigationActivity, presentModalNavigationActivity, pushFragment, refreshOriginFragment, replaceFragment, runOnUiThread, setIsSupportSlideBack, setNavigatorBarId, setNavigatorBarOnButtom, setNavLeftButton, setNavLeftButton, setNavRightButton, setNavRightButton, setOriginFragment, setRequestedOrientation, setRootViewLayoutId, setTitle, setTitle, showBackButton, showNavigatorBar, showView, showViewIn, viewDidLoad, wantFullScreen
dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, getLayoutInflater, getLifecycle, getLoaderManager, getParentFragment, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, getViewLifecycleOwner, getViewLifecycleOwnerLiveData, getViewModelStore, hashCode, hasOptionsMenu, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isStateSaved, isVisible, onActivityCreated, onActivityResult, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreate, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroyOptionsMenu, onGetLayoutInflater, onHiddenChanged, onInflate, onInflate, onLowMemory, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPictureInPictureModeChanged, onPrepareOptionsMenu, onRequestPermissionsResult, onSaveInstanceState, onStart, onStop, onViewCreated, onViewStateRestored, postponeEnterTransition, registerForContextMenu, requestPermissions, requireActivity, requireContext, requireFragmentManager, requireHost, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setArguments, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu
protected void initCreateView()
initCreateView
在类中 TuSdkFragment
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
onCreateView
在类中 TuSdkFragment
public void onDetach()
onDetach
在类中 TuSdkFragment
public TuSdkNavigatorButton setNavLeftButton(java.lang.String title)
title
- 标题public TuSdkNavigatorButton setNavLeftButton(java.lang.String title, int textColor)
title
- 标题textColor
- 文本颜色public TuSdkNavigatorButton setNavLeftButton(int titleId)
titleId
- 标题public TuSdkNavigatorButton setNavLeftHighLightButton(java.lang.String title)
title
- 标题public TuSdkNavigatorButton setNavLeftHighLightButton(int titleId)
titleId
- 标题public TuSdkNavigatorButton setNavRightButton(java.lang.String title)
title
- 标题public TuSdkNavigatorButton setNavRightButton(java.lang.String title, int textColor)
title
- 标题textColor
- 文本颜色public TuSdkNavigatorButton setNavRightButton(int titleId)
titleId
- 标题public TuSdkNavigatorButton setNavRightHighLightButton(java.lang.String title)
title
- 标题public TuSdkNavigatorButton setNavRightHighLightButton(int titleId)
titleId
- 标题public void presentActivity(TuSdkIntent intent, boolean isDestory)
intent
- isDestory
- public void presentModalNavigationActivity(androidx.fragment.app.Fragment fragment)
fragment
- public void presentModalNavigationActivity(androidx.fragment.app.Fragment fragment, boolean wantFullScreen)
fragment
- 加载的fragment实例wantFullScreen
- 是否需要全屏public void pushModalNavigationActivity(androidx.fragment.app.Fragment fragment)
fragment
- 加载的fragment实例public void pushModalNavigationActivity(androidx.fragment.app.Fragment fragment, boolean wantFullScreen)
fragment
- 加载的fragment实例wantFullScreen
- 是否需要全屏public void presentModalNavigationActivity(androidx.fragment.app.Fragment fragment, ActivityAnimType presentAnim, ActivityAnimType dismissAnim, boolean wantFullScreen)
fragment
- 加载的fragment实例presentAnim
- 弹出时动画dismissAnim
- 退出时动画wantFullScreen
- 是否需要全屏public void filpModalNavigationActivity(androidx.fragment.app.Fragment fragment, boolean wantFullScreen, boolean isDestory)
fragment
- 加载的fragment类对象wantFullScreen
- 是否需要全屏isDestory
- 是否销毁自己public void filpModalNavigationActivity(androidx.fragment.app.Fragment fragment, boolean isDestory)
fragment
- 加载的fragment类对象isDestory
- 是否销毁自己public void alert(TuSdkViewHelper.AlertDelegate delegate, int titleId, int msgId)
delegate
- titleId
- msgId
- public void alert(TuSdkViewHelper.AlertDelegate delegate, java.lang.String title, java.lang.String msg)
delegate
- title
- msg
- public void hubStatus(java.lang.String status)
status
- 信息public void hubStatus(int statusResId)
statusResId
- 信息资源IDpublic void hubSuccess(java.lang.String status)
status
- 信息public void hubSuccess(int statusResId)
statusResId
- 信息资源IDpublic void hubError(java.lang.String status)
status
- 信息public void hubError(int statusResId)
statusResId
- 信息资源IDpublic void hubDismiss()
public void hubDismissRightNow()