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

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

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

origin: tianzhijiexian/EasyDialog

public <D extends EasyDialog> D build() {
  EasyDialog dialog = createDialog();
  AlertParams p = getParams();
  Bundle bundle = new Bundle();
  bundle.putSerializable(KEY_DIALOG_PARAMS, createDialogParamsByAlertParams(p));
  bundle.putBoolean(KEY_IS_BOTTOM_DIALOG, isBottomDialog);
  bundle.putBoolean(KEY_IS_RETAIN_INSTANCE, isRetainInstance);
  dialog.setArguments(bundle);
  dialog.cancelListener = p.mOnCancelListener;
  dialog.dismissListener = p.mOnDismissListener;
  dialog.positiveListener = p.mPositiveButtonListener;
  dialog.neutralListener = p.mNeutralButtonListener;
  dialog.negativeListener = p.mNegativeButtonListener;
  dialog.clickListener = p.mOnClickListener;
  dialog.multiClickListener = p.mOnCheckboxClickListener;
  dialog.setCancelable(p.mCancelable);
  return (D) dialog;
}
origin: tianzhijiexian/EasyDialog

/**
 * 支持单选列表的对话框
 */
public void singleChoiceDialog(View v) {
  EasyDialog dialog = EasyDialog.builder(this)
      .setTitle("Single Choice Dialog")
      .setSingleChoiceItems(new String[]{"Android", "ios", "wp"}, 1,
          (dialog1, position) -> {
            Log.d(TAG, "onItemClick pos = " + position);
            dialog1.dismiss();
          })// 设置单选列表的数据和监听
      .setPositiveButton("ok", null)
      .build();
  dialog.setCancelable(false);
  dialog.show(getSupportFragmentManager(), TAG);
}
origin: tianzhijiexian/EasyDialog

/**
 * 从底部弹出的对话框
 */
public void bottomDialog(View v) {
  BottomDialog.Builder builder = EasyDialog.builder(this, BottomDialog.class);
  builder.setMessage("click me");
  builder.setIsBottomDialog(true); // 设置后则会变成从底部弹出,否则为正常模式
  // 监听点空白处cancel的事件
  builder.setOnCancelListener(d -> showToast("cancel"));
  builder.setOnDismissListener(d -> showToast("dismiss"));
  EasyDialog dialog = builder.build();
  dialog.show(getSupportFragmentManager(), "dialog");
  // 如果设置了,那么底部dialog就不支持手势关闭和空白处关闭
  dialog.setCancelable(false);
}
kale.ui.view.dialogEasyDialogsetCancelable

Popular methods of EasyDialog

  • builder
  • <init>
  • bindAndSetViews
  • getActivity
  • getDialogParams
  • modifyAlertDialogBuilder
    修改构造当前dialog的 AlertDialog.Builder对象,框架将会用这个builder对象来做dialog真正的构造器
  • 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 PhpStorm plugins
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