added in version 23.4.0
belongs to Maven artifact com.android.support:design:27.1.0

BottomSheetDialog

public class BottomSheetDialog
extends AppCompatDialog

java.lang.Object
   ↳ android.app.Dialog
     ↳ android.support.v7.app.AppCompatDialog
       ↳ android.support.design.widget.BottomSheetDialog


Base class for Dialogs styled as a bottom sheet.

Summary

Inherited constants

From interface android.content.DialogInterface

Public constructors

BottomSheetDialog(Context context)
BottomSheetDialog(Context context, int theme)

Protected constructors

BottomSheetDialog(Context context, boolean cancelable, DialogInterface.OnCancelListener cancelListener)

Public methods

void setCancelable(boolean cancelable)
void setCanceledOnTouchOutside(boolean cancel)
void setContentView(View view)
void setContentView(int layoutResId)
void setContentView(View view, ViewGroup.LayoutParams params)

Protected methods

void onCreate(Bundle savedInstanceState)
void onStart()

Inherited methods

From class android.support.v7.app.AppCompatDialog
From class android.app.Dialog
From class java.lang.Object
From interface android.support.v7.app.AppCompatCallback
From interface android.content.DialogInterface
From interface android.view.Window.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.View.OnCreateContextMenuListener

Public constructors

BottomSheetDialog

added in version 23.4.0
BottomSheetDialog (Context context)

Parameters
context Context

BottomSheetDialog

added in version 23.4.0
BottomSheetDialog (Context context, 
                int theme)

Parameters
context Context

theme int

Protected constructors

BottomSheetDialog

added in version 23.4.0
BottomSheetDialog (Context context, 
                boolean cancelable, 
                DialogInterface.OnCancelListener cancelListener)

Parameters
context Context

cancelable boolean

cancelListener DialogInterface.OnCancelListener

Public methods

setCancelable

void setCancelable (boolean cancelable)

Parameters
cancelable boolean

setCanceledOnTouchOutside

void setCanceledOnTouchOutside (boolean cancel)

Parameters
cancel boolean

setContentView

void setContentView (View view)

Parameters
view View

setContentView

void setContentView (int layoutResId)

Parameters
layoutResId int

setContentView

void setContentView (View view, 
                ViewGroup.LayoutParams params)

Parameters
view View

params ViewGroup.LayoutParams

Protected methods

onCreate

void onCreate (Bundle savedInstanceState)

Parameters
savedInstanceState Bundle

onStart

void onStart ()