本文整理汇总了Java中com.blankj.utilcode.util.ToastUtils.showShortToast方法的典型用法代码示例。如果您正苦于以下问题:Java ToastUtils.showShortToast方法的具体用法?Java ToastUtils.showShortToast怎么用?Java ToastUtils.showShortToast使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.blankj.utilcode.util.ToastUtils
的用法示例。
在下文中一共展示了ToastUtils.showShortToast方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: registerd_reminder_reminder
import com.blankj.utilcode.util.ToastUtils; //导入方法依赖的package包/类
@Event(registerd_reminder_reminder)
private void registerd_reminder_reminder(View view) {
if (pvCustomOptions != null) {
pvCustomOptions.setPicker(cardItem4);//添加数据
cardItem4.get(0).setSetPicker(true);
pvCustomOptions.show();
MedicationHelper.hideInputMethod(view);
} else {
ToastUtils.showShortToast("选择框尚未初始化");
}
}
示例2: reg_type
import com.blankj.utilcode.util.ToastUtils; //导入方法依赖的package包/类
@Event(R.id.reg_type)
private void reg_type(View view) {
if (pvCustomOptions != null) {
pvCustomOptions.setPicker(cardItem5);//添加数据
cardItem5.get(0).setSetPicker(true);
pvCustomOptions.show();
MedicationHelper.hideInputMethod(view);
} else {
ToastUtils.showShortToast("选择框尚未初始化");
}
}
示例3: reg_department_name
import com.blankj.utilcode.util.ToastUtils; //导入方法依赖的package包/类
@Event(R.id.reg_department_name)
private void reg_department_name(View view) {
if (pvCustomOptions != null) {
pvCustomOptions.setPicker(cardItem6);//添加数据
cardItem6.get(0).setSetPicker(true);
pvCustomOptions.show();
MedicationHelper.hideInputMethod(view);
} else {
ToastUtils.showShortToast("选择框尚未初始化");
}
}
示例4: editText3
import com.blankj.utilcode.util.ToastUtils; //导入方法依赖的package包/类
@Event(R.id.editText3)
private void editText3(View view)
{
if (pvCustomOptions != null) {
pvCustomOptions.setPicker(cardItem);//添加数据
cardItem.get(0).setSetPicker(true);
pvCustomOptions.show();
MedicationHelper.hideInputMethod(view);
}else {
ToastUtils.showShortToast("选择框尚未初始化");
}
}
示例5: editText5
import com.blankj.utilcode.util.ToastUtils; //导入方法依赖的package包/类
@Event(R.id.editText5)
private void editText5(View view)
{
if (pvCustomOptions != null) {
pvCustomOptions.setPicker(cardItem);//添加数据
cardItem.get(0).setSetPicker(true);
pvCustomOptions.show();
MedicationHelper.hideInputMethod(view);
}else {
ToastUtils.showShortToast("选择框尚未初始化");
}
}
示例6: editText41
import com.blankj.utilcode.util.ToastUtils; //导入方法依赖的package包/类
@Event(R.id.editText41)
private void editText41(View view)
{
if (pvCustomOptions != null) {
pvCustomOptions.setPicker(cardItem2);//添加数据
cardItem2.get(0).setSetPicker(true);
pvCustomOptions.show();
MedicationHelper.hideInputMethod(view);
}else {
ToastUtils.showShortToast("选择框尚未初始化");
}
}
示例7: editText4
import com.blankj.utilcode.util.ToastUtils; //导入方法依赖的package包/类
@Event(R.id.editText4)
private void editText4(View v)
{
if (pvCustomOptions != null) {
pvCustomOptions.setPicker(cardItem3);//添加数据
cardItem3.get(0).setSetPicker(true);
pvCustomOptions.show();
MedicationHelper.hideInputMethod(v);
}else {
ToastUtils.showShortToast("选择框尚未初始化");
}
}
示例8: Reminder
import com.blankj.utilcode.util.ToastUtils; //导入方法依赖的package包/类
@Event(R.id.Reminder)
private void Reminder(View v)
{
if (pvCustomOptions != null) {
pvCustomOptions.setPicker(cardItem4);//添加数据
cardItem4.get(0).setSetPicker(true);
pvCustomOptions.show();
MedicationHelper.hideInputMethod(v);
}else {
ToastUtils.showShortToast("选择框尚未初始化");
}
}
示例9: reminderMode
import com.blankj.utilcode.util.ToastUtils; //导入方法依赖的package包/类
@Event(R.id.reminderMode)
private void reminderMode(View v)
{
if (pvCustomOptions != null) {
pvCustomOptions.setPicker(cardItem5);//添加数据
cardItem5.get(0).setSetPicker(true);
pvCustomOptions.show();
MedicationHelper.hideInputMethod(v);
}else {
ToastUtils.showShortToast("选择框尚未初始化");
}
}
示例10: ContactType
import com.blankj.utilcode.util.ToastUtils; //导入方法依赖的package包/类
@Event(R.id.ContactType)
private void ContactType(View view) {
if (pvCustomOptions != null) {
pvCustomOptions.show();
MedicationHelper.hideInputMethod(view);
pvCustomOptions.setPicker(cardItem);//添加数据
cardItem.get(0).setSetPicker(true);
}else {
ToastUtils.showShortToast("选择框尚未初始化");
}
}
示例11: initView
import com.blankj.utilcode.util.ToastUtils; //导入方法依赖的package包/类
private void initView(View view) {
ToastUtils.showShortToast(httpParam);
}
示例12: btnSend
import com.blankj.utilcode.util.ToastUtils; //导入方法依赖的package包/类
@Event(R.id.btnSend)
private void btnSend(View view){
if(MedicationHelper.isNullOrEmpty(relay.getText().toString().trim())) {
ToastUtils.showShortToast("亲,您还没有输入回复内容");
return;
}else {
RequestParams params=new RequestParams("http://101.69.181.251/api/v1/topics/"+QAid+"/create_reply");
params.setBodyContent("{\"reply\":{\"content\":\" "+relay.getText().toString().trim()+"\"}}");
params.setAsJsonContent(true);
x.http().post(params, new Callback.CommonCallback<String>() {
@Override
public void onSuccess(String result) {
relay.setText("");
relay.requestFocus();
replyList.clear();
InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(relay.getWindowToken(), 0) ;
progress_bar.setVisibility(View.VISIBLE);
commonAdapter.notifyDataSetChanged();
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
httpGetMainContet();
progress_bar.setVisibility(View.GONE);
}
}, DELAY_TIME);
}
@Override
public void onError(Throwable ex, boolean isOnCallback) {
}
@Override
public void onCancelled(CancelledException cex) {
}
@Override
public void onFinished() {
}
});
}
}
示例13: initBottomDialog
import com.blankj.utilcode.util.ToastUtils; //导入方法依赖的package包/类
private void initBottomDialog() {
//创建对象
promptDialog = new PromptDialog(this);
//设置自定义属性
promptDialog.getDefaultBuilder().touchAble(true).round(3).loadingDuration(3000);
promptButtonlogist=new PromptButton("物流查询", new PromptButtonListener() {
@Override
public void onClick(PromptButton promptButton) {
startActivity(new Intent(MainActivity.this, LogisticsWebActivity.class));
}
});
promptButtonlogist.setTextColor(Color.parseColor("#59acdf"));
promptButtonHealthy=new PromptButton("健康头条", new PromptButtonListener() {
@Override
public void onClick(PromptButton promptButton) {
ToastUtils.showShortToast("健康头条");
}
});
promptButtonHealthy.setTextColor(Color.parseColor("#59acdf"));
promptButtonDoctorOnline=new PromptButton("药师在线咨询", new PromptButtonListener() {
@Override
public void onClick(PromptButton promptButton) {
startActivity(new Intent(MainActivity.this,OnlineConsultingActivity.class));
}
});
promptButtonDoctorOnline.setTextColor(Color.parseColor("#59acdf"));
promptButton=new PromptButton("挂号提醒", new PromptButtonListener() {
@Override
public void onClick(PromptButton promptButton) {
startActivity(new Intent(MainActivity.this,RegisteredReminderActivity.class));
}
});
promptButton.setTextColor(Color.parseColor("#59acdf"));
promptButton1= new PromptButton("用药提醒", new PromptButtonListener() {
@Override
public void onClick(PromptButton promptButton) {
startActivity(new Intent(MainActivity.this,MedicationReminderActivity.class));
}
});
promptButton1.setTextColor(Color.parseColor("#FF4081"));
}
示例14: onEvent
import com.blankj.utilcode.util.ToastUtils; //导入方法依赖的package包/类
@Subscribe(sticky = true,threadMode = ThreadMode.MAIN)
public void onEvent(BaseEvents.myEvent event) {
// UI updates must run on MainThread
if (event == BaseEvents.myEvent.SENDREMARKSDRUGBESTS) {
ToastUtils.showShortToast(param);
if(param.equals("drugbests")&&TakeMedicinApplication.isFirstApp_drugbests==1){
remarksDrugbestsList = (List<Remarks>) event.getObject();
setMyAdapter(remarksDrugbestsList);
Log.e("remarksDrugbestsList",remarksDrugbestsList.get(0).data);
}
}
if (event == BaseEvents.myEvent.SENDREMARKSFOODLIST) {
ToastUtils.showShortToast(param);
if(param.equals("food")&&TakeMedicinApplication.isFisterFood==1){
remarkseFoodList = (List<Remarks>) event.getObject();
setMyAdapter(remarkseFoodList);
Log.e("remarkseFoodList",remarkseFoodList.get(0).data);
}
}
if(event==BaseEvents.myEvent.SENDREMARKSWATERLIST)
{
if(param.equals("water")&&TakeMedicinApplication.isFirstWater==1){
remarksWaterList = (List<Remarks>) event.getObject();
setMyAdapter(remarksWaterList);
}
}
if(event==BaseEvents.myEvent.SENDREMARKSTIMELIST) {
if (param.equals("time") && TakeMedicinApplication.isFirstTiem == 1) {
remarksTimeList = (List<Remarks>) event.getObject();
setMyAdapter(remarksTimeList);
}
}
if(event== BaseEvents.myEvent.SENDREMARKSPEICALLIST)
{
if (param.equals("special") && TakeMedicinApplication.isFirstSpecial == 1) {
remarksSpecialList = (List<Remarks>) event.getObject();
setMyAdapter(remarksSpecialList);
}
}
}