congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
EasyDialog.modifyAlertDialogBuilder
Code IndexAdd Tabnine to your IDE (free)

How to use
modifyAlertDialogBuilder
method
in
kale.ui.view.dialog.EasyDialog

Best Java code snippets using kale.ui.view.dialog.EasyDialog.modifyAlertDialogBuilder (Showing top 2 results out of 315)

origin: tianzhijiexian/EasyDialog

@Override
protected void modifyAlertDialogBuilder(android.support.v7.app.AlertDialog.Builder builder) {
  super.modifyAlertDialogBuilder(builder);
  if (getLayoutResId() != 0) {
    builder.setView(getLayoutResId());
  }
}
origin: tianzhijiexian/EasyDialog

@Override
protected Dialog createDialog(@NonNull FragmentActivity activity) {
  DialogParams p = getDialogParams(); // 得到来自父类的参数,这里将参数组装成builder对象
  AlertDialog.Builder builder = new AlertDialog.Builder(activity, p.themeResId)
      .setTitle(p.title)
      .setIcon(p.mIconId)
      .setMessage(p.message)
      .setPositiveButton(p.positiveText, positiveListener)
      .setNeutralButton(p.neutralText, neutralListener)
      .setNegativeButton(p.negativeText, negativeListener);
  if (p.items != null) {
    if (p.isMultiChoice) {
      builder.setMultiChoiceItems(p.items, p.checkedItems, multiClickListener);
    } else if (p.isSingleChoice) {
      builder.setSingleChoiceItems(p.items, p.checkedItem, clickListener);
    } else {
      builder.setItems(p.items, clickListener);
    }
  }
  // 允许子类修改builder对象
  modifyAlertDialogBuilder(builder);
  return builder.create();
}
kale.ui.view.dialogEasyDialogmodifyAlertDialogBuilder

Javadoc

修改构造当前dialog的 AlertDialog.Builder对象,框架将会用这个builder对象来做dialog真正的构造器

Popular methods of EasyDialog

  • builder
  • setCancelable
  • <init>
  • bindAndSetViews
  • getActivity
  • getDialogParams
  • onCreateDialog
  • setArguments
  • setupDialog
  • show
  • showAllowingStateLoss
  • showAllowingStateLoss

Popular in Java

  • Running tasks concurrently on multiple threads
  • getExternalFilesDir (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getContentResolver (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now