public class Utils {
   private  static Toast toast;
    public  static void  showtoast(Context context,String str){
        if(toast==null){
            toast=Toast.makeText(context,str,Toast.LENGTH_SHORT);

        }else{
            toast.setText(str);
        }
        toast.show();

    }
}

 

相关文章:

  • 2022-12-23
  • 2021-05-28
  • 2022-12-23
  • 2022-12-23
  • 2021-06-07
  • 2021-09-13
猜你喜欢
  • 2022-12-23
  • 2022-01-03
  • 2021-07-18
  • 2022-12-23
  • 2021-06-16
  • 2022-02-12
  • 2022-12-23
相关资源
相似解决方案