public class TuStickerChooseFragment extends TuStickerChooseFragmentBase implements StickerLocalListFragment.StickerLocalListFragmentDelegate, TuStickerOnlineFragment.TuStickerOnlineFragmentDelegate, StickerRecentlyLocalPackage.StickerRecentlyLocalPackageDelegate
限定符和类型 | 类和说明 |
---|---|
static interface |
TuStickerChooseFragment.TuStickerChooseFragmentDelegate
图片编辑贴纸选择控制器委托
|
限定符和类型 | 字段和说明 |
---|---|
protected android.view.View.OnClickListener |
mButtonClickListener
按钮点击事件
|
protected TuSdkViewPager.TuSdkViewPagerDelegate |
mTuSdkViewPagerDelegate
分页滚动视图委托
|
permissionAlertDelegate
构造器和说明 |
---|
TuStickerChooseFragment()
贴纸选择控制器
|
限定符和类型 | 方法和说明 |
---|---|
protected androidx.fragment.app.Fragment |
buildStickerListFragment(int index)
创建贴纸列表控制器
|
protected TuSdkTextButton |
createCategoryButton(StickerCategory cate)
创建分类按钮
|
protected void |
dispatcherViewClick(android.view.View v)
分发视图点击事件
|
android.view.View |
getCancelButton()
取消
|
java.util.List<StickerCategory> |
getCategories()
贴纸分类列表
|
android.widget.LinearLayout |
getCategoryView()
分类视图
|
android.widget.RelativeLayout |
getCategoryWrap()
分类包装视图
|
int |
getCellLayoutId()
行视图布局ID
|
android.view.View |
getCursor()
分类选中游标
|
TuStickerChooseFragment.TuStickerChooseFragmentDelegate |
getDelegate()
图片编辑贴纸选择控制器委托
|
int |
getEmptyViewLayouId()
空视图布局ID
|
int |
getHeaderLayoutId()
分组头部视图布局ID
|
static int |
getLayoutId()
布局ID
|
TuSdkImageButton |
getOnLineStickerButton()
在线贴纸
|
java.lang.String |
getTotalFooterFormater()
统计格式化字符 (默认: lsq_album_total_format [%1$s 张照片])
|
TuSdkViewPager |
getViewPager()
分页视图
|
protected void |
handleCategoryButton(int index)
选中分类
|
protected void |
handleOnlineButton()
开启在线贴纸视图
|
protected void |
loadView(android.view.ViewGroup view)
loadView
|
void |
navigatorBarLeftAction(TuSdkNavigatorBar.NavigatorBarButtonInterface button)
导航栏左边按钮点击事件
|
void |
navigatorBarRightAction(TuSdkNavigatorBar.NavigatorBarButtonInterface button)
更多
|
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState)
创建视图
|
void |
onDestroyView() |
void |
onStickerLocalListFragmentAction(StickerLocalListFragment fragment)
更多动作
|
void |
onStickerLocalListFragmentGroup(StickerLocalListFragment fragment,
StickerGroup group,
StickerListHeader.StickerListHeaderAction action)
删除一个贴纸包
|
void |
onStickerLocalListFragmentSelected(StickerLocalListFragment fragment,
StickerData data)
选中贴纸
|
void |
onStickerRecentlyPackageStatusChanged(StickerRecentlyLocalPackage manager)
StickerRecentlyLocalPackageDelegate
|
void |
onTuStickerOnlineFragmentSelected(TuStickerOnlineFragment fragment,
StickerData data)
选中一个贴纸
|
protected void |
reloadStickers()
重新加载贴纸
|
void |
setCellLayoutId(int resId)
设置行视图布局ID
|
void |
setDelegate(TuStickerChooseFragment.TuStickerChooseFragmentDelegate mDelegate)
图片编辑贴纸选择控制器委托
|
void |
setEmptyViewLayouId(int mEmptyViewLayouId)
空视图布局ID
|
void |
setHeaderLayoutId(int mHeaderLayoutId)
分组头部视图布局ID
|
void |
setTotalFooterFormater(java.lang.String mTotalFooterFormater)
统计格式化字符 (默认: lsq_album_total_format [%1$s 张照片])
|
protected void |
viewDidLoad(android.view.ViewGroup view)
初始化视图
|
getCategory, removeStickerGroup, setCategories
getErrorListener, getRequestPermissionCode, getRequiredPermissions, hasRequiredPermission, notifyError, onPermissionGrantedResult, onRequestPermissionsResult, requestRequiredPermissions, setErrorListener
alert, alert, filpModalNavigationActivity, filpModalNavigationActivity, hubDismiss, hubDismissRightNow, hubError, hubError, hubStatus, hubStatus, hubSuccess, hubSuccess, initCreateView, onDetach, presentActivity, presentModalNavigationActivity, presentModalNavigationActivity, presentModalNavigationActivity, pushModalNavigationActivity, pushModalNavigationActivity, setNavLeftButton, setNavLeftButton, setNavLeftButton, setNavLeftHighLightButton, setNavLeftHighLightButton, setNavRightButton, setNavRightButton, setNavRightButton, setNavRightHighLightButton, setNavRightHighLightButton
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, navigatorBarBackAction, navigatorBarCancelAction, navigatorBarHeight, navigatorBarLoaded, navSearchViewSearch, navSearchViewSetDelegate, navSegmentedAddTexts, navSegmentedAddTexts, navSegmentedSetDelegate, navSegmentedSetected, onAttach, onBackForSlide, onBackPressed, onCreateAnimation, onDestroy, 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, 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, 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 android.view.View.OnClickListener mButtonClickListener
protected TuSdkViewPager.TuSdkViewPagerDelegate mTuSdkViewPagerDelegate
public static int getLayoutId()
public TuStickerChooseFragment.TuStickerChooseFragmentDelegate getDelegate()
public void setDelegate(TuStickerChooseFragment.TuStickerChooseFragmentDelegate mDelegate)
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
TuFragment
onCreateView
在类中 TuFragment
public void setCellLayoutId(int resId)
resId
- 行视图布局ID (默认: tusdk_impl_component_widget_sticker_list_cell){@link org.lasque.tusdk.geev2.impl.components.widget.sticker.StickerListCell}
public int getCellLayoutId()
{@link org.lasque.tusdk.geev2.impl.components.widget.sticker.StickerListCell}
public int getHeaderLayoutId()
{@link org.lasque.tusdk.geev2.impl.components.widget.sticker.StickerListHeader}
public void setHeaderLayoutId(int mHeaderLayoutId)
mHeaderLayoutId
- 分组头部视图布局ID (默认:
tusdk_impl_component_widget_sticker_list_header){@link org.lasque.tusdk.geev2.impl.components.widget.sticker.StickerListHeader}
public java.lang.String getTotalFooterFormater()
public void setTotalFooterFormater(java.lang.String mTotalFooterFormater)
public int getEmptyViewLayouId()
public void setEmptyViewLayouId(int mEmptyViewLayouId)
public final TuSdkViewPager getViewPager()
public final android.widget.RelativeLayout getCategoryWrap()
public final android.widget.LinearLayout getCategoryView()
public final android.view.View getCursor()
public final android.view.View getCancelButton()
public final TuSdkImageButton getOnLineStickerButton()
protected void dispatcherViewClick(android.view.View v)
protected void handleOnlineButton()
protected void loadView(android.view.ViewGroup view)
loadView
在类中 TuStickerChooseFragmentBase
protected void viewDidLoad(android.view.ViewGroup view)
TuSdkFragment
public void onDestroyView()
public void navigatorBarLeftAction(TuSdkNavigatorBar.NavigatorBarButtonInterface button)
TuSdkFragment
navigatorBarLeftAction
在类中 TuSdkFragment
public void navigatorBarRightAction(TuSdkNavigatorBar.NavigatorBarButtonInterface button)
navigatorBarRightAction
在类中 TuSdkFragment
public java.util.List<StickerCategory> getCategories()
TuStickerChooseFragmentBase
protected TuSdkTextButton createCategoryButton(StickerCategory cate)
protected void handleCategoryButton(int index)
protected androidx.fragment.app.Fragment buildStickerListFragment(int index)
public void onTuStickerOnlineFragmentSelected(TuStickerOnlineFragment fragment, StickerData data)
onTuStickerOnlineFragmentSelected
在接口中 TuStickerOnlineFragment.TuStickerOnlineFragmentDelegate
fragment
- 在线贴纸控制器data
- 贴纸数据public void onStickerLocalListFragmentAction(StickerLocalListFragment fragment)
public void onStickerLocalListFragmentSelected(StickerLocalListFragment fragment, StickerData data)
onStickerLocalListFragmentSelected
在接口中 StickerLocalListFragment.StickerLocalListFragmentDelegate
fragment
- 控制器data
- 贴纸数据public void onStickerLocalListFragmentGroup(StickerLocalListFragment fragment, StickerGroup group, StickerListHeader.StickerListHeaderAction action)
onStickerLocalListFragmentGroup
在接口中 StickerLocalListFragment.StickerLocalListFragmentDelegate
fragment
- 控制器group
- 贴纸包action
- 贴纸列表分组头视图动作protected void reloadStickers()
public void onStickerRecentlyPackageStatusChanged(StickerRecentlyLocalPackage manager)