public class BottomSheetDialog
extends android.app.Dialog
android.content.DialogInterface.OnCancelListener, android.content.DialogInterface.OnClickListener, android.content.DialogInterface.OnDismissListener, android.content.DialogInterface.OnKeyListener, android.content.DialogInterface.OnMultiChoiceClickListener, android.content.DialogInterface.OnShowListener| Constructor and Description |
|---|
BottomSheetDialog(android.content.Context context) |
BottomSheetDialog(android.content.Context context,
int style) |
| Modifier and Type | Method and Description |
|---|---|
void |
addContentView(android.view.View view,
android.view.ViewGroup.LayoutParams params) |
BottomSheetDialog |
applyStyle(int styleId) |
BottomSheetDialog |
cancelable(boolean cancelable) |
BottomSheetDialog |
canceledOnTouchOutside(boolean cancel) |
BottomSheetDialog |
contentView(int layoutId)
Set the content view of this BottomSheetDialog.
|
BottomSheetDialog |
contentView(android.view.View v)
Set the content view of this BottomSheetDialog.
|
BottomSheetDialog |
dimAmount(float amount)
Set the dim amount of the region outside this BottomSheetDialog.
|
void |
dismiss() |
void |
dismissImmediately()
Dismiss Dialog immediately without showing out animation.
|
protected int |
getContainerHeight() |
BottomSheetDialog |
heightParam(int height)
Set the height params of this BottomSheetDialog's content view.
|
BottomSheetDialog |
inDuration(int duration)
Set the duration of in animation.
|
BottomSheetDialog |
inInterpolator(android.view.animation.Interpolator interpolator)
Set the interpolator of in animation.
|
protected void |
onCreate() |
protected void |
onStart() |
protected void |
onStop() |
BottomSheetDialog |
outDuration(int duration)
Set the duration of out animation.
|
BottomSheetDialog |
outInterpolator(android.view.animation.Interpolator interpolator)
Set the interpolator of out animation.
|
void |
setCancelable(boolean flag) |
void |
setCanceledOnTouchOutside(boolean cancel) |
void |
setContentView(int layoutId) |
void |
setContentView(android.view.View v) |
void |
setContentView(android.view.View v,
android.view.ViewGroup.LayoutParams params) |
cancel, closeOptionsMenu, create, dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, findViewById, getActionBar, getContext, getCurrentFocus, getLayoutInflater, getOwnerActivity, getVolumeControlStream, getWindow, hide, invalidateOptionsMenu, isShowing, onActionModeFinished, onActionModeStarted, onAttachedToWindow, onBackPressed, onContentChanged, onContextItemSelected, onContextMenuClosed, onCreate, onCreateContextMenu, onCreateOptionsMenu, onCreatePanelMenu, onCreatePanelView, onDetachedFromWindow, onGenericMotionEvent, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyShortcut, onKeyUp, onMenuItemSelected, onMenuOpened, onOptionsItemSelected, onOptionsMenuClosed, onPanelClosed, onPrepareOptionsMenu, onPreparePanel, onRestoreInstanceState, onSaveInstanceState, onSearchRequested, onTouchEvent, onTrackballEvent, onWindowAttributesChanged, onWindowFocusChanged, onWindowStartingActionMode, openContextMenu, openOptionsMenu, registerForContextMenu, requestWindowFeature, setCancelMessage, setDismissMessage, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setOnCancelListener, setOnDismissListener, setOnKeyListener, setOnShowListener, setOwnerActivity, setTitle, setTitle, setVolumeControlStream, show, takeKeyEvents, unregisterForContextMenupublic BottomSheetDialog(android.content.Context context)
public BottomSheetDialog(android.content.Context context,
int style)
protected void onCreate()
public BottomSheetDialog applyStyle(int styleId)
public BottomSheetDialog cancelable(boolean cancelable)
public BottomSheetDialog canceledOnTouchOutside(boolean cancel)
public BottomSheetDialog dimAmount(float amount)
amount - The dim amount in [0..1].public BottomSheetDialog contentView(android.view.View v)
v - The content view.public BottomSheetDialog contentView(int layoutId)
layoutId - The reourceId of layout.public BottomSheetDialog heightParam(int height)
height - The height param. Can be the size in pixels, or ViewGroup.LayoutParams.WRAP_CONTENT or ViewGroup.LayoutParams.MATCH_PARENT.public BottomSheetDialog inDuration(int duration)
duration - The duration of animation.public BottomSheetDialog inInterpolator(android.view.animation.Interpolator interpolator)
interpolator - The duration of animation.public BottomSheetDialog outDuration(int duration)
duration - The duration of animation.public BottomSheetDialog outInterpolator(android.view.animation.Interpolator interpolator)
interpolator - The duration of animation.protected void onStart()
onStart in class android.app.Dialogprotected void onStop()
onStop in class android.app.Dialogpublic void setCancelable(boolean flag)
setCancelable in class android.app.Dialogpublic void setCanceledOnTouchOutside(boolean cancel)
setCanceledOnTouchOutside in class android.app.Dialogpublic void setContentView(android.view.View v)
setContentView in class android.app.Dialogpublic void setContentView(int layoutId)
setContentView in class android.app.Dialogpublic void setContentView(android.view.View v,
android.view.ViewGroup.LayoutParams params)
setContentView in class android.app.Dialogpublic void addContentView(android.view.View view,
android.view.ViewGroup.LayoutParams params)
addContentView in class android.app.Dialogpublic void dismissImmediately()
public void dismiss()
dismiss in interface android.content.DialogInterfacedismiss in class android.app.Dialogprotected int getContainerHeight()