BottomSheetDialog

public class BottomSheetDialog
extends AppCompatDialog

java.lang.Object
   ↳ AppCompatDialog
     ↳ com.google.android.material.bottomsheet.BottomSheetDialog


Base class for Dialogs styled as a bottom sheet.

Summary

Public constructors

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

Protected constructors

BottomSheetDialog(Context context, boolean cancelable, OnCancelListener cancelListener)

Public methods

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

Protected methods

void onCreate(Bundle savedInstanceState)
void onStart()

Inherited methods

From class java.lang.Object

Public constructors

BottomSheetDialog

BottomSheetDialog (Context context)

Parameters
context Context

BottomSheetDialog

BottomSheetDialog (Context context, 
                int theme)

Parameters
context Context

theme int

Protected constructors

BottomSheetDialog

BottomSheetDialog (Context context, 
                boolean cancelable, 
                OnCancelListener cancelListener)

Parameters
context Context

cancelable boolean

cancelListener OnCancelListener

Public methods

setCancelable

void setCancelable (boolean cancelable)

Parameters
cancelable boolean

setCanceledOnTouchOutside

void setCanceledOnTouchOutside (boolean cancel)

Parameters
cancel boolean

setContentView

void setContentView (int layoutResId)

Parameters
layoutResId int

setContentView

void setContentView (View view, 
                ViewGroup.LayoutParams params)

Parameters
view View

params ViewGroup.LayoutParams

setContentView

void setContentView (View view)

Parameters
view View

Protected methods

onCreate

void onCreate (Bundle savedInstanceState)

Parameters
savedInstanceState Bundle

onStart

void onStart ()