显示带图片的Toast
Toast toast = Toast.makeText(this,R.string.app_name,Toast.LENGTH_SHORT);
LinearLayout toastLayout = (LinearLayout) toast.getView();
ImageView imageView = new ImageView(this);
imageView.setImageResource(R.mipmap.ic_launcher);
toastLayout.addView(imageView,0);
//toast.setView(toastLayout);
请问为什么这里最后不需要调用setView函数将toastLayout传给toast,而只是在toastLayout这个临时变量上addView即可?