Java Code Examples for android.content.DialogInterface.OnKeyListener

The following are Jave code examples for showing how to use OnKeyListener of the android.content.DialogInterface class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: UIWidget   File: UIAlertView.java   View Source Code Vote up 5 votes
public UIAlertView setOnKeyListener(DialogInterface.OnKeyListener onKeyListener) {
    dialog.setOnKeyListener(new DialogInterface.OnKeyListener() {
        @Override
        public boolean onKey(DialogInterface dialogInterface, int i, KeyEvent keyEvent) {
            return false;
        }
    });
    return this;
}
 
Example 2
Project: CompatAlertDialog   File: AlertDialog.java   View Source Code Vote up 4 votes
@Override
public Builder setOnKeyListener(DialogInterface.OnKeyListener onKeyListener) {
    builder.setOnKeyListener(onKeyListener);
    return this;
}
 
Example 3
Project: CompatAlertDialog   File: AlertDialog.java   View Source Code Vote up 4 votes
public Builder setOnKeyListener(DialogInterface.OnKeyListener onKeyListener) {
    builder.setOnKeyListener(onKeyListener);
    return this;
}
 
Example 4
Project: Mvvm   File: MvvmDialog.java   View Source Code Vote up 4 votes
@Nullable
protected DialogInterface.OnKeyListener getOnKeyListener() {
    return null;
}
 
Example 5
Project: MainCalendar   File: Popup.java   View Source Code Vote up 2 votes
/**
 * Sets on key listener.
 *
 * @param onKeyListener the on key listener
 */
public void setOnKeyListener(DialogInterface.OnKeyListener onKeyListener) {
    dialog.setOnKeyListener(onKeyListener);
}
 
Example 6
Project: AndroidOpen   File: Popup.java   View Source Code Vote up 2 votes
/**
 * Sets on key listener.
 *
 * @param onKeyListener the on key listener
 */
public void setOnKeyListener(DialogInterface.OnKeyListener onKeyListener) {
    dialog.setOnKeyListener(onKeyListener);
}
 
Example 7
Project: CompatAlertDialog   File: AlertDialog.java   View Source Code Vote up 0 votes
Builder setOnKeyListener(DialogInterface.OnKeyListener onKeyListener);