Example usage for android.app AlertDialog THEME_HOLO_LIGHT

List of usage examples for android.app AlertDialog THEME_HOLO_LIGHT

Introduction

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

Prototype

int THEME_HOLO_LIGHT

To view the source code for android.app AlertDialog THEME_HOLO_LIGHT.

Click Source Link

Document

Special theme constant for #AlertDialog(Context,int) : use the holographic alert theme with a light background.

Usage

From source file:li.barter.fragments.ChatsFragment.java

/**
 * Show dialog for adding books/*  w w  w .jav a2 s.co  m*/
 */
private void showChatOptions() {

    mChatDialogFragment = new SingleChoiceDialogFragment();
    mChatDialogFragment.show(AlertDialog.THEME_HOLO_LIGHT, R.array.chat_longclick_choices, 0,
            R.string.chat_longclick_dialog_head, getFragmentManager(), true,
            FragmentTags.DIALOG_CHAT_LONGCLICK);

}

From source file:li.barter.fragments.BooksAroundMeFragment.java

/**
 * Show dialog for adding books/*from ww  w  .j  a  va 2s.c o  m*/
 */
private void showAddBookOptions() {

    mAddBookDialogFragment = new SingleChoiceDialogFragment();
    mAddBookDialogFragment.show(AlertDialog.THEME_HOLO_LIGHT, R.array.add_book_choices, 0,
            R.string.add_book_dialog_head, getFragmentManager(), true, FragmentTags.DIALOG_ADD_BOOK);

}

From source file:li.barter.fragments.AbstractBarterLiFragment.java

/**
 * Show the dialog for the user to add his name, in case it's not already added
 *///from  w ww  .j  ava2s.co  m
protected void showAddFirstNameDialog() {

    mAddUserInfoDialogFragment = new AddUserInfoDialogFragment();
    mAddUserInfoDialogFragment.show(AlertDialog.THEME_HOLO_LIGHT, 0, R.string.update_info, R.string.submit,
            R.string.cancel, 0, getFragmentManager(), true, FragmentTags.DIALOG_ADD_NAME);
}

From source file:li.barter.fragments.BookDetailFragment.java

/**
 * Shows the dialog to delete the book/*from   w w  w. j  a  v  a 2s. c  o m*/
 */
private void deleteBook() {

    mDeleteBookDialogFragment = new AlertDialogFragment();
    mDeleteBookDialogFragment.show(AlertDialog.THEME_HOLO_LIGHT, 0, R.string.delete,
            R.string.confirm_delete_book, R.string.delete, R.string.cancel, 0, getFragmentManager(), true,
            FragmentTags.DIALOG_DELETE_BOOK);
}

From source file:chinanurse.cn.nurse.Fragment_Nurse_job.IdentityFragment_ACTIVITY.java

protected void ShowPickDialog() {
    new AlertDialog.Builder(activity, AlertDialog.THEME_HOLO_LIGHT)
            .setNegativeButton("", new DialogInterface.OnClickListener() {
                public void onClick(DialogInterface dialog, int which) {
                    dialog.dismiss();// w w  w. jav a  2s. co m
                    Intent intentFromGallery = new Intent();
                    intentFromGallery.setType("image/*"); // 
                    intentFromGallery.setAction(Intent.ACTION_PICK);
                    startActivityForResult(intentFromGallery, PHOTO_REQUEST_ALBUM);

                }
            }).setPositiveButton("?", new DialogInterface.OnClickListener() {
                public void onClick(DialogInterface dialog, int whichButton) {
                    dialog.dismiss();
                    Intent intentFromCapture = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
                    // ????
                    String state = Environment.getExternalStorageState();
                    if (state.equals(Environment.MEDIA_MOUNTED)) {
                        File path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM);
                        File file = new File(path, "newpic.jpg");
                        intentFromCapture.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(file));
                    }

                    startActivityForResult(intentFromCapture, PHOTO_REQUEST_CAMERA);
                }
            }).show();
}

From source file:li.barter.fragments.SelectPreferredLocationFragment.java

/**
 * Show the dialog for the user to enter his location detail
 *///  w ww .  j  ava2  s .co  m
private void showAddLocationDialog() {

    mAddLocationDialogFragment = new AddSingleEditTextDialogFragment();
    mAddLocationDialogFragment.show(AlertDialog.THEME_HOLO_LIGHT, 0, R.string.preferred_location,
            R.string.submit, R.string.cancel, 0, R.string.hint_location_name, getFragmentManager(), true,
            FragmentTags.DIALOG_ADD_NAME);
}