IT. Expert System.

Android Reference

AlertDialog


android.app

Class AlertDialog

  • All Implemented Interfaces:
    DialogInterface, KeyEvent.Callback, View.OnCreateContextMenuListener, Window.Callback
    Direct Known Subclasses:
    DatePickerDialog, ProgressDialog, TimePickerDialog


    public class AlertDialog
    extends Dialog
    implements DialogInterface
    A subclass of Dialog that can display one, two or three buttons. If you only want to display a String in this dialog box, use the setMessage() method. If you want to display a more complex view, look up the FrameLayout called "custom" and add your view to it:
     FrameLayout fl = (FrameLayout) findViewById(android.R.id.custom);
     fl.addView(myView, new LayoutParams(MATCH_PARENT, WRAP_CONTENT));
     

    The AlertDialog class takes care of automatically setting WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM for you based on whether any views in the dialog return true from View.onCheckIsTextEditor(). Generally you want this set for a Dialog without text editors, so that it will be placed on top of the current input method UI. You can modify this behavior by forcing the flag to your desired mode after calling onCreate(android.os.Bundle).

    Developer Guides

    For more information about creating dialogs, read the Dialogs developer guide.



Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1539 / 96487338. Delta: 0.02390 с