Handler handler = new Handler(Looper.getMainLooper());
handler.post(new Runnable() {
public void run() {
Toast.makeText(context,context.getString(R.string.x),Toast.LENGTH_SHORT).show();
}
});
这样弹Toast挺好
最新推荐文章于 2021-06-22 12:53:37 发布