//1
Toast.makeText(this, "Toast-Android 专属浮动小提示", Toast.LENGTH_LONG).show();
//2
Toast imgToast;
ImageView imgView;
imgView = new ImageView(this);
imgView.setImageResource(R.drawable.icon);
imgToast = new Toast(this);
imgToast.setView(imgView);
imgToast.setDuration(Toast.LENGTH_LONG);
imgToast.show();
Toast-Android 专属浮动小提示
最新推荐文章于 2021-05-26 12:41:31 发布