Tabnine Logo
BaseCustomDialog
Code IndexAdd Tabnine to your IDE (free)

How to use
BaseCustomDialog
in
kale.ui.view.dialog

Best Java code snippets using kale.ui.view.dialog.BaseCustomDialog (Showing top 11 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 void modifyAlertDialogBuilder(AlertDialog.Builder builder) {
  super.modifyAlertDialogBuilder(builder);
  builder.setPositiveButton(null, null);
}
origin: tianzhijiexian/EasyDialog

  /**
   * 这时dialog已经初始化完毕
   */
  @Override
  public void onActivityCreated(Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);
//        getDialog().getWindow().requestFeature(Window.FEATURE_NO_TITLE);
  }

origin: tianzhijiexian/EasyDialog

@NonNull
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
  if (!isBottomDialog()) {
    return super.onCreateDialog(savedInstanceState);
  } else {
    return new BottomSheetDialog(getContext(), getTheme());
  }
}
origin: tianzhijiexian/EasyDialog

@Override
protected void bindAndSetViews(@Nullable View root) {
  super.bindAndSetViews(root);
  bindViews(root);
  setViews();
}
origin: tianzhijiexian/EasyDialog

@Override
public void setupDialog(Dialog dialog, int style) {
  super.setupDialog(dialog, style);
  if (isBottomDialog()) {
    dialog.setContentView(getLayoutResId());
  }
}
origin: tianzhijiexian/EasyDialog

@Override
public void onDestroyView() {
  super.onDestroyView();
  mInputTextEt = null;
}
origin: tianzhijiexian/EasyDialog

@Override
protected void onRestoreInstanceState(@NonNull Bundle savedInstanceState) {
  super.onRestoreInstanceState(savedInstanceState);
}

origin: tianzhijiexian/EasyDialog

@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  Bundle arguments = getArguments();
  byte[] mBitmapByteArr = null;
  if (arguments != null) {
    mBitmapByteArr = arguments.getByteArray(KEY_IMAGE_BITMAP);
    mInputText = arguments.getCharSequence(KEY_INPUT_TEXT);
    mInputHint = arguments.getCharSequence(KEY_INPUT_HINT);
  }
  if (mBitmapByteArr != null) {
    mBitmap = BitmapFactory.decodeByteArray(mBitmapByteArr, 0, mBitmapByteArr.length);
  }
}
origin: tianzhijiexian/EasyDialog

@Override
protected void modifyAlertDialogBuilder(AlertDialog.Builder builder) {
  super.modifyAlertDialogBuilder(builder);
  Bundle arguments = getArguments();
  String name = arguments.getString(KEY_NAME);
  int age = arguments.getInt(KEY_AGE);
  String str = "name: " + name + ", age: " + age;
  // 修改builder对象
  builder.setMessage("修改后的message是:\n\n" + str);
}
origin: tianzhijiexian/EasyDialog

/**
 * title的布局,title的布局会显示在自定义布局的上方
 */
@Override
protected void modifyAlertDialogBuilder(AlertDialog.Builder builder) {
  super.modifyAlertDialogBuilder(builder);
  View titleView = LayoutInflater.from(getContext()).inflate(R.layout.custom_dialog_title_layout, null, false);
  builder.setCustomTitle(titleView); // 修改builder中的titleView
}
kale.ui.view.dialogBaseCustomDialog

Most used methods

  • bindViews
  • getContext
  • getLayoutResId
  • getTheme
  • isBottomDialog
  • modifyAlertDialogBuilder
  • onActivityCreated
  • onCreate
  • onDestroyView
  • onRestoreInstanceState
  • onSaveInstanceState
  • setViews
  • onSaveInstanceState,
  • setViews

Popular in Java

  • Reactive rest calls using spring rest template
  • putExtra (Intent)
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Github Copilot alternatives
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