Example usage for android.app AlertDialog setInverseBackgroundForced

List of usage examples for android.app AlertDialog setInverseBackgroundForced

Introduction

In this page you can find the example usage for android.app AlertDialog setInverseBackgroundForced.

Prototype

public void setInverseBackgroundForced(boolean forceInverseBackground) 

Source Link

Usage

From source file:org.brandroid.openmanager.util.EventHandler.java

public void startSearch(final OpenPath base, final Context mContext) {
    final InputDialog dSearch = new InputDialog(mContext).setIcon(R.drawable.search).setTitle(R.string.s_search)
            .setCancelable(true).setMessageTop(R.string.s_prompt_search_within).setDefaultTop(base.getPath())
            .setMessage(R.string.s_prompt_search);
    AlertDialog alert = dSearch.setPositiveButton(R.string.s_search, new OnClickListener() {
        public void onClick(DialogInterface dialog, int which) {
            searchFile(new OpenFile(dSearch.getInputTopText()), dSearch.getInputText(), mContext);
        }/*from w  w w  .j  av a 2s . c  o  m*/
    }).setNegativeButton(R.string.s_cancel, new OnClickListener() {
        public void onClick(DialogInterface dialog, int which) {
            dialog.dismiss();
        }
    }).create();
    alert.setInverseBackgroundForced(true);
    alert.show();
}