Codota Logo
EaseAlertDialog
Code IndexAdd Codota to your IDE (free)

How to use
EaseAlertDialog
in
com.hyphenate.easeui.widget

Best Java code snippets using com.hyphenate.easeui.widget.EaseAlertDialog (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: WuXiaolong/WoChat

@Override
public void onResendClick(final EMMessage message) {
  new EaseAlertDialog(getActivity(), R.string.resend, R.string.confirm_resend, null, new AlertDialogUser() {
    @Override
    public void onResult(boolean confirmed, Bundle bundle) {
      if (!confirmed) {
        return;
      }
      resendMessage(message);
    }
  }, true).show();
}
origin: WuXiaolong/WoChat

  @Override
  public void onClick(View view) {
    if (view.getId() == R.id.btn_ok) {
      onOk(view);
    } else if (view.getId() == R.id.btn_cancel) {
      onCancel(view);
    }
  }
};
origin: Vegen/SmartCampus

public EaseAlertDialog(Context context, String title, String msg, Bundle bundle, AlertDialogUser user, boolean showCancel) {
  super(context);
  this.title = title;
  this.msg = msg;
  this.user = user;
  this.bundle = bundle;
  this.showCancel = showCancel;
  this.setCanceledOnTouchOutside(true);
}

origin: easemob/livestream_demo_android

@Override
protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  requestWindowFeature(Window.FEATURE_NO_TITLE);
  setContentView(R.layout.ease_alert_dialog);
  Button cancel = (Button)findViewById(R.id.btn_cancel);
  Button ok = (Button)findViewById(R.id.btn_ok);
  TextView titleView = (TextView) findViewById(R.id.title);
  setTitle(title);
    ((TextView)findViewById(R.id.alert_message)).setText(msg);
origin: easemob/livestream_demo_android

public void onOk(View view){
  this.dismiss();
  if (this.user != null) {
    this.user.onResult(true, this.bundle);
  }
}

origin: WuXiaolong/WoChat

new EaseAlertDialog(getActivity(), R.string.resend, R.string.confirm_resend, null, new AlertDialogUser() {
  @Override
  public void onResult(boolean confirmed, Bundle bundle) {
origin: Vegen/SmartCampus

@Override
protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  requestWindowFeature(Window.FEATURE_NO_TITLE);
  setContentView(R.layout.ease_alert_dialog);
  Button cancel = (Button)findViewById(R.id.btn_cancel);
  Button ok = (Button)findViewById(R.id.btn_ok);
  TextView titleView = (TextView) findViewById(R.id.title);
  setTitle(title);
    ((TextView)findViewById(R.id.alert_message)).setText(msg);
origin: Vegen/SmartCampus

public void onOk(View view){
  this.dismiss();
  if (this.user != null) {
    this.user.onResult(true, this.bundle);
  }
}

origin: easemob/livestream_demo_android

new EaseAlertDialog(getActivity(), R.string.resend, R.string.confirm_resend, null, new AlertDialogUser() {
  @Override
  public void onResult(boolean confirmed, Bundle bundle) {
origin: WuXiaolong/WoChat

@Override
protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  requestWindowFeature(Window.FEATURE_NO_TITLE);
  setContentView(R.layout.ease_alert_dialog);
  Button cancel = (Button)findViewById(R.id.btn_cancel);
  Button ok = (Button)findViewById(R.id.btn_ok);
  TextView titleView = (TextView) findViewById(R.id.title);
  setTitle(title);
    ((TextView)findViewById(R.id.alert_message)).setText(msg);
origin: easemob/livestream_demo_android

@Override
public void onResendClick(final EMMessage message) {
  new EaseAlertDialog(getActivity(), R.string.resend, R.string.confirm_resend, null, new AlertDialogUser() {
    @Override
    public void onResult(boolean confirmed, Bundle bundle) {
      if (!confirmed) {
        return;
      }
      resendMessage(message);
    }
  }, true).show();
}

origin: WuXiaolong/WoChat

public EaseAlertDialog(Context context, String title, String msg) {
  super(context);
  this.title = title;
  this.msg = msg;
  this.setCanceledOnTouchOutside(true);
}
origin: Vegen/SmartCampus

  @Override
  public void onClick(View view) {
    if (view.getId() == R.id.btn_ok) {
      onOk(view);
    } else if (view.getId() == R.id.btn_cancel) {
      onCancel(view);
    }
  }
};
origin: Vegen/SmartCampus

  public void onCancel(View view) {
    this.dismiss();
    if (this.user != null) {
      this.user.onResult(false, this.bundle);
    }
  }
}
origin: zhangchunbin/HuanXinDemo

new EaseAlertDialog(getActivity(), R.string.resend, R.string.confirm_resend, null, new AlertDialogUser() {
  @Override
  public void onResult(boolean confirmed, Bundle bundle) {
origin: zhangchunbin/HuanXinDemo

@Override
protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  requestWindowFeature(Window.FEATURE_NO_TITLE);
  setContentView(R.layout.ease_alert_dialog);
  Button cancel = (Button)findViewById(R.id.btn_cancel);
  Button ok = (Button)findViewById(R.id.btn_ok);
  TextView titleView = (TextView) findViewById(R.id.title);
  setTitle(title);
    ((TextView)findViewById(R.id.alert_message)).setText(msg);
origin: zhangchunbin/HuanXinDemo

@Override
public void onResendClick(final EMMessage message) {
  new EaseAlertDialog(getActivity(), R.string.resend, R.string.confirm_resend, null, new AlertDialogUser() {
    @Override
    public void onResult(boolean confirmed, Bundle bundle) {
      if (!confirmed) {
        return;
      }
      resendMessage(message);
    }
  }, true).show();
}

origin: WuXiaolong/WoChat

public EaseAlertDialog(Context context, String title, String msg, Bundle bundle, AlertDialogUser user, boolean showCancel) {
  super(context);
  this.title = title;
  this.msg = msg;
  this.user = user;
  this.bundle = bundle;
  this.showCancel = showCancel;
  this.setCanceledOnTouchOutside(true);
}

origin: stevenwsg/XSY-University-trade

  @Override
  public void onClick(View view) {
    if (view.getId() == R.id.btn_ok) {
      onOk(view);
    } else if (view.getId() == R.id.btn_cancel) {
      onCancel(view);
    }
  }
};
origin: WuXiaolong/WoChat

  public void onCancel(View view) {
    this.dismiss();
    if (this.user != null) {
      this.user.onResult(false, this.bundle);
    }
  }
}
com.hyphenate.easeui.widgetEaseAlertDialog

Most used methods

  • <init>
  • show
  • dismiss
  • findViewById
  • onCancel
  • onOk
  • requestWindowFeature
  • setCanceledOnTouchOutside
  • setContentView
  • setTitle

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (Timer)
  • getExternalFilesDir (Context)
  • onCreateOptionsMenu (Activity)
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • Reference (javax.naming)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now