public class TuActionSheet extends TuSdkActionSheet
TuActionSheet actionSheet = new TuActionSheet(this.context, this.activity); actionSheet.init("记录新的相片故事", "取消", null, "拍照", "从相机像册选择", "删除"); actionSheet.destructiveIndex = 2; // actionSheet.init(this.context, null, "取消", null, "从相机像册选择"); actionSheet.showInView(this, this.getClass().hashCode());
TuSdkActionSheet.ActionSheetAnimaExitDelegate, TuSdkActionSheet.ActionSheetClickDelegate
构造器和说明 |
---|
TuActionSheet(android.content.Context context) |
限定符和类型 | 方法和说明 |
---|---|
protected int |
getActionsheetBottomSpace(boolean isLast)
获取按钮边距
|
protected int |
getActionsheetButtonStyleResId()
获取选项按钮样式资源ID
|
protected int |
getActionSheetLayoutId()
获取ActionSheet视图布局ID
|
protected int |
getButtonBackgroundResId(int index,
int total)
获取按钮背景资源ID
|
protected int |
getButtonColor(int index)
获取按钮文字颜色
|
addButtonTitle, addButtonTitle, buttonsSize, dismiss, dismissRightNow, getButtonTitle, getCancelIndex, getCategory, getContext, getDestructiveIndex, getTitle, init, init, isExsitInWindow, setButtonColor, setCancelIndex, setDestructiveIndex, showInView, showInView, showInView
protected int getActionSheetLayoutId()
getActionSheetLayoutId
在类中 TuSdkActionSheet
protected int getActionsheetButtonStyleResId()
getActionsheetButtonStyleResId
在类中 TuSdkActionSheet
protected int getButtonBackgroundResId(int index, int total)
getButtonBackgroundResId
在类中 TuSdkActionSheet
index
- total
- protected int getButtonColor(int index)
getButtonColor
在类中 TuSdkActionSheet
index
- protected int getActionsheetBottomSpace(boolean isLast)
getActionsheetBottomSpace
在类中 TuSdkActionSheet
isLast
-