类 EaseAlertDialog

  • 所有已实现的接口:
    android.content.DialogInterface, android.view.KeyEvent.Callback, android.view.View.OnCreateContextMenuListener, android.view.Window.Callback
    直接已知子类:
    EaseChatExtendMenuDialog

    public class EaseAlertDialog
    extends android.app.Dialog
    Sample: val dialog = EaseAlertDialog.Builder(this) .setContentView(R.layout.dialog_reset_pwd) .setText(R.id.tv_message, msg) .setLayoutParams(UIUtils.dp2px(this, 256), ViewGroup.LayoutParams.WRAP_CONTENT) .show() dialog.setOnClickListener(R.id.btn_input_again, object : View.OnClickListener { override fun onClick(v: View?) { dialog.dismiss() } })
    • 嵌套类概要

      嵌套类 
      修饰符和类型 说明
      static class  EaseAlertDialog.Builder<T extends EaseAlertDialog>
      builder
      • 从接口继承的嵌套类/接口 android.content.DialogInterface

        android.content.DialogInterface.OnCancelListener, android.content.DialogInterface.OnClickListener, android.content.DialogInterface.OnDismissListener, android.content.DialogInterface.OnKeyListener, android.content.DialogInterface.OnMultiChoiceClickListener, android.content.DialogInterface.OnShowListener
    • 字段概要

      • 从接口继承的字段 android.content.DialogInterface

        BUTTON_NEGATIVE, BUTTON_NEUTRAL, BUTTON_POSITIVE, BUTTON1, BUTTON2, BUTTON3
    • 构造器概要

      构造器 
      构造器 说明
      EaseAlertDialog​(android.content.Context context)  
      EaseAlertDialog​(android.content.Context context, int themeResId)  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      <T extends android.view.View>
      T
      getViewById​(int viewId)  
      void setOnClickListener​(int viewId, android.view.View.OnClickListener onClickListener)  
      void setText​(int viewId, java.lang.String text)  
      • 从类继承的方法 android.app.Dialog

        addContentView, cancel, closeOptionsMenu, create, dismiss, dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, findViewById, getActionBar, getContext, getCurrentFocus, getLayoutInflater, getOwnerActivity, getSearchEvent, getVolumeControlStream, getWindow, hide, invalidateOptionsMenu, isShowing, onActionModeFinished, onActionModeStarted, onAttachedToWindow, onBackPressed, onContentChanged, onContextItemSelected, onContextMenuClosed, onCreate, onCreateContextMenu, onCreateOptionsMenu, onCreatePanelMenu, onCreatePanelView, onDetachedFromWindow, onGenericMotionEvent, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyShortcut, onKeyUp, onMenuItemSelected, onMenuOpened, onOptionsItemSelected, onOptionsMenuClosed, onPanelClosed, onPrepareOptionsMenu, onPreparePanel, onRestoreInstanceState, onSaveInstanceState, onSearchRequested, onSearchRequested, onStart, onStop, onTouchEvent, onTrackballEvent, onWindowAttributesChanged, onWindowFocusChanged, onWindowStartingActionMode, onWindowStartingActionMode, openContextMenu, openOptionsMenu, registerForContextMenu, requestWindowFeature, requireViewById, setCancelable, setCanceledOnTouchOutside, setCancelMessage, setContentView, setContentView, setContentView, setDismissMessage, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setOnCancelListener, setOnDismissListener, setOnKeyListener, setOnShowListener, setOwnerActivity, setTitle, setTitle, setVolumeControlStream, show, takeKeyEvents, unregisterForContextMenu
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • 从接口继承的方法 android.view.Window.Callback

        onPointerCaptureChanged, onProvideKeyboardShortcuts
    • 构造器详细资料

      • EaseAlertDialog

        public EaseAlertDialog​(@NonNull
                               android.content.Context context)
      • EaseAlertDialog

        public EaseAlertDialog​(@NonNull
                               android.content.Context context,
                               int themeResId)
    • 方法详细资料

      • setText

        public void setText​(int viewId,
                            java.lang.String text)
      • setOnClickListener

        public void setOnClickListener​(int viewId,
                                       android.view.View.OnClickListener onClickListener)
      • getViewById

        public <T extends android.view.View> T getViewById​(int viewId)