Class of android.app · AlertDialog.java · Android's reference
public class AlertDialog extends Dialog implements DialogInterface
AlertDialog ← Dialog
A dialog of a title, a message or a view, and up to three buttons, laid out in a column.
protected AlertDialog(Context context) sourceprotected AlertDialog(Context context, int themeResId) sourceprotected AlertDialog(Context context, boolean cancelable, OnCancelListener cancelListener) sourcepublic void setTitle(CharSequence title) sourcepublic void setMessage(CharSequence message) sourcepublic void setView(View view) sourcepublic void setView(View view, int viewSpacingLeft, int viewSpacingTop, int viewSpacingRight, int viewSpacingBottom) sourcepublic void setButton(int whichButton, CharSequence text, OnClickListener listener) sourcepublic Button getButton(int whichButton) sourceThe button of BUTTON_POSITIVE, BUTTON_NEGATIVE or BUTTON_NEUTRAL, or null before onCreate or when it has no text.
public void setIcon(int resId) empty body sourcepublic void setIcon(android.graphics.drawable.Drawable icon) empty body sourceprotected void onCreate(Bundle savedInstanceState) sourceMade from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.