当前位置: 首页>>代码示例>>Java>>正文


Java ToastUtils.showShortToast方法代码示例

本文整理汇总了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("选择框尚未初始化");
    }

}
 
开发者ID:MedicationReminder,项目名称:MedicationReminder,代码行数:14,代码来源:RegisteredReminderActivity.java

示例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("选择框尚未初始化");
    }

}
 
开发者ID:MedicationReminder,项目名称:MedicationReminder,代码行数:14,代码来源:RegisteredReminderActivity.java

示例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("选择框尚未初始化");
    }

}
 
开发者ID:MedicationReminder,项目名称:MedicationReminder,代码行数:14,代码来源:RegisteredReminderActivity.java

示例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("选择框尚未初始化");
}

}
 
开发者ID:MedicationReminder,项目名称:MedicationReminder,代码行数:15,代码来源:MedicationReminderActivity.java

示例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("选择框尚未初始化");
    }

}
 
开发者ID:MedicationReminder,项目名称:MedicationReminder,代码行数:15,代码来源:MedicationReminderActivity.java

示例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("选择框尚未初始化");
    }
}
 
开发者ID:MedicationReminder,项目名称:MedicationReminder,代码行数:14,代码来源:MedicationReminderActivity.java

示例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("选择框尚未初始化");
    }
}
 
开发者ID:MedicationReminder,项目名称:MedicationReminder,代码行数:15,代码来源:MedicationReminderActivity.java

示例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("选择框尚未初始化");
    }
}
 
开发者ID:MedicationReminder,项目名称:MedicationReminder,代码行数:14,代码来源:MedicationReminderActivity.java

示例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("选择框尚未初始化");
    }
}
 
开发者ID:MedicationReminder,项目名称:MedicationReminder,代码行数:14,代码来源:MedicationReminderActivity.java

示例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("选择框尚未初始化");
    }
}
 
开发者ID:MedicationReminder,项目名称:MedicationReminder,代码行数:13,代码来源:AddContactActivity.java

示例11: initView

import com.blankj.utilcode.util.ToastUtils; //导入方法依赖的package包/类
private void initView(View view) {
    ToastUtils.showShortToast(httpParam);
}
 
开发者ID:MedicationReminder,项目名称:MedicationReminder,代码行数:4,代码来源:TabLayoutFragment.java

示例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() {

           }
       });
   }

}
 
开发者ID:MedicationReminder,项目名称:MedicationReminder,代码行数:49,代码来源:CreateQuestionAanswerActivity.java

示例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"));
}
 
开发者ID:MedicationReminder,项目名称:MedicationReminder,代码行数:44,代码来源:MainActivity.java

示例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);
        }
    }
}
 
开发者ID:MedicationReminder,项目名称:MedicationReminder,代码行数:47,代码来源:RemakesRecyclerViewActivity.java


注:本文中的com.blankj.utilcode.util.ToastUtils.showShortToast方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。