public class TuAlbumMultiplePreviewFragment extends TuAlbumMultiplePreviewFragmentBase implements androidx.viewpager.widget.ViewPager.OnPageChangeListener
限定符和类型 | 类和说明 |
---|---|
static interface |
TuAlbumMultiplePreviewFragment.TuAlbumMultiplePreviewDelegate
预览控制器委托
|
限定符和类型 | 字段和说明 |
---|---|
protected android.view.View.OnClickListener |
mButtonClickListener
按钮点击事件
|
构造器和说明 |
---|
TuAlbumMultiplePreviewFragment() |
限定符和类型 | 方法和说明 |
---|---|
protected void |
dispatcherViewClick(android.view.View v)
分发视图点击事件
|
TuSdkTextButton |
getBackButton()
返回按钮
|
android.widget.RelativeLayout |
getBottomBarView()
获取底部栏
|
TuSdkButton |
getCompleteButton()
完成按钮
|
AlbumSqlInfo |
getCurrentAlbumSqlInfo()
当前相册的 AlbumSqlInfo信息
|
ImageSqlInfo |
getCurrentPhotoSqlInfo(int position)
当前图片的 ImageSqlInfo信息
|
int |
getCurrentPosition()
当前图片在相册中的位置
|
TuAlbumMultiplePreviewFragment.TuAlbumMultiplePreviewDelegate |
getDelegate()
预览控制器委托
|
static int |
getLayoutId()
布局ID
|
int |
getMaxSelecteNumber()
允许最大选择的数目
|
org.lasque.tusdk.core.struct.TuSdkSize |
getMaxSelectionImageSize()
选择照片的尺寸限制 默认:CGSize(8000,8000)
|
int |
getPhotoCountInAlbum()
当前相册中图片的数目
|
ImageSqlHelper.PhotoSortDescriptor |
getPhotosSortDescriptor()
获取相册照片排序方式 默认按照修改时间排序 Media.DATE_MODIFIED
|
java.util.List<ImageSqlInfo> |
getSelectedPhotolist()
已选择的图片列表
|
TuSdkImageButton |
getSelectImageButton()
选择包装中图片按钮
|
android.widget.LinearLayout |
getSelectImageWrap()
选择视图包装
|
TuSdkTextButton |
getSelectTextButton()
选择包装中字符按钮
|
android.widget.RelativeLayout |
getTopBarView()
获取顶部栏
|
androidx.viewpager.widget.ViewPager |
getViewPager()
图片展示视图
|
protected void |
handleBackButton()
点击后退按钮
|
protected void |
handleCompleteButton()
点击完成按钮
|
protected void |
handleImageSingleTap()
轻点图片区域隐藏顶部栏、底部栏
|
protected void |
handleSelectWrap()
点击选择区域
|
protected void |
loadView(android.view.ViewGroup view)
加载视图
|
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState)
创建视图
|
void |
onDestroyView() |
void |
onPageScrolled(int arg0,
float arg1,
int arg2) |
void |
onPageScrollStateChanged(int state) |
void |
onPageSelected(int currentPage) |
void |
setCurrentAlbumSqlInfo(AlbumSqlInfo info)
当前相册的 AlbumSqlInfo信息
|
void |
setCurrentPosition(int position)
当前图片在相册中的位置
|
void |
setDelegate(TuAlbumMultiplePreviewFragment.TuAlbumMultiplePreviewDelegate delegate)
预览控制器委托
|
void |
setMaxSelecteNumber(int maxSelecteNumber)
允许最大选择的数目
|
void |
setMaxSelectionImageSize(org.lasque.tusdk.core.struct.TuSdkSize maxSelectionImageSize)
选择照片的尺寸限制 默认:CGSize(8000,8000)
|
void |
setPhotosSortDescriptor(ImageSqlHelper.PhotoSortDescriptor photosSortDescriptor)
设置相册照片排序方式 默认按照修改时间排序 Media.DATE_MODIFIED
|
void |
setSelectedPhotolist(java.util.List<ImageSqlInfo> selectedPhotoList)
已选择的图片列表
|
protected void |
viewDidLoad(android.view.ViewGroup view)
初始化视图
|
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, navigatorBarLeftAction, navigatorBarLoaded, navigatorBarRightAction, 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, 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
public static int getLayoutId()
public void setDelegate(TuAlbumMultiplePreviewFragment.TuAlbumMultiplePreviewDelegate delegate)
delegate
- public TuAlbumMultiplePreviewFragment.TuAlbumMultiplePreviewDelegate getDelegate()
public android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
TuFragment
onCreateView
在类中 TuFragment
public androidx.viewpager.widget.ViewPager getViewPager()
public android.widget.LinearLayout getSelectImageWrap()
public TuSdkButton getCompleteButton()
public android.widget.RelativeLayout getTopBarView()
public android.widget.RelativeLayout getBottomBarView()
public TuSdkTextButton getBackButton()
public TuSdkImageButton getSelectImageButton()
public TuSdkTextButton getSelectTextButton()
protected void dispatcherViewClick(android.view.View v)
protected void handleImageSingleTap()
protected void handleCompleteButton()
protected void handleBackButton()
protected void handleSelectWrap()
public void setCurrentPosition(int position)
position
- public int getCurrentPosition()
public int getPhotoCountInAlbum()
public void setMaxSelecteNumber(int maxSelecteNumber)
maxSelecteNumber
- public int getMaxSelecteNumber()
public void setMaxSelectionImageSize(org.lasque.tusdk.core.struct.TuSdkSize maxSelectionImageSize)
maxSelectionImageSize
- 默认:CGSize(8000,8000)public org.lasque.tusdk.core.struct.TuSdkSize getMaxSelectionImageSize()
public ImageSqlInfo getCurrentPhotoSqlInfo(int position)
position
- public void setCurrentAlbumSqlInfo(AlbumSqlInfo info)
info
- public AlbumSqlInfo getCurrentAlbumSqlInfo()
public void setSelectedPhotolist(java.util.List<ImageSqlInfo> selectedPhotoList)
selectedPhotoList
- public java.util.List<ImageSqlInfo> getSelectedPhotolist()
public void setPhotosSortDescriptor(ImageSqlHelper.PhotoSortDescriptor photosSortDescriptor)
mPhotosSortDescriptor
- public ImageSqlHelper.PhotoSortDescriptor getPhotosSortDescriptor()
protected void loadView(android.view.ViewGroup view)
TuSdkFragment
protected void viewDidLoad(android.view.ViewGroup view)
TuSdkFragment
public void onDestroyView()
onDestroyView
在类中 TuSdkFragment
public void onPageScrollStateChanged(int state)
onPageScrollStateChanged
在接口中 androidx.viewpager.widget.ViewPager.OnPageChangeListener
public void onPageScrolled(int arg0, float arg1, int arg2)
onPageScrolled
在接口中 androidx.viewpager.widget.ViewPager.OnPageChangeListener
public void onPageSelected(int currentPage)
onPageSelected
在接口中 androidx.viewpager.widget.ViewPager.OnPageChangeListener