Android DialogInterface.OnDismissListener - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android DialogInterface.OnDismissListener class.

This code example shows how to use the following methods:onDismiss
        } 
        setClickedOk(false); 
 
        // Call the pre-set dismiss listener too. 
        if (mDismissListener != null) {
            mDismissListener.onDismiss(dialog);
        } 
 
    } 
 
    private boolean getClickedOk() { 
        return mClickedOk;
    } 
 
    private void setClickedOk(boolean clickedOk) {
        mClickedOk = clickedOk;
    } 
 
    /** 
     * This callback is used when a list item is selected 
5
CodeRank
This code example shows how to use the following methods:onDismiss
	} 
	 
	@Override 
	public void onDismiss(DialogInterface dialog) {
		if (mOnDismissListener != null) {
			mOnDismissListener.onDismiss(this.getDialog());
		} 
		 
		super.onDismiss(dialog);
	} 
	 
	public BaseDialogFragment setOnCancelListener(OnCancelListener listener) {
		mOnCancelListener = listener;
		 
		return this;
	} 
	 
	public BaseDialogFragment setOnDismissListener(OnDismissListener listener) {
		mOnDismissListener = listener;
		 
3
CodeRank
This code example shows how to use the following methods:onDismiss
		dialog.setOnDismissListener(new OnDismissListener() {
			// 
			public void onDismiss(DialogInterface dialog) {
				try { 
					if (dismissListener != null) {
						dismissListener.onDismiss(dialog);
					} 
				} finally { 
					signal.countDown();
				} 
			} 
		}); 
		if (Thread.currentThread() != handler.getLooper().getThread()) {
			handler.post(new Runnable() {
				//@Override 
				public void run() { 
					dialog.show();
				} 
			}); 
			try { 
4
CodeRank
This code example shows how to use the following methods:onDismiss
 
    @Override 
    public void onDismiss(DialogInterface dialog) {
        super.onDismiss(dialog);
        if (mOnDismissListener != null)
            mOnDismissListener.onDismiss(dialog);
    } 
 
    public void setOnDismissListener(final OnDismissListener onDismissListener) {
        mOnDismissListener = onDismissListener;
    } 
 
    @Override 
    protected List<Object> getModules() {
        List<Object> modules = super.getModules();
        modules.add(new AlertDialogFragmentModule());
        return modules;
    } 
 
    private void setMessage(String message) {
4
CodeRank
This code example shows how to use the following methods:onDismiss
		onDismissListener = listener;
	} 
	 
	@Override 
	public void onDismiss(DialogInterface dialog) {
		onDismissListener.onDismiss(dialog);
		super.onDismiss(dialog);
	} 
	 
	public int getSelectedItemPosition(){ 
		return selected;
	} 
 
} 
4
CodeRank

Related Android DialogInterface.OnDismissListener Questions & Answers:

See Code Examples for Android DialogInterface.OnDismissListener Methods: