首先自定义好需要的layout,例如下所示: LinearLayout mLayout = new LinearLayout(context); mLayout.setOrientation(LinearLayout.VERTICAL); TextView mTV = new TextView(context); CustomView cv = new CustomView(context); mTV.setText(text); int height = LinearLayout.LayoutParams.FILL_PARENT; int width = LinearLayout.LayoutParams.WRAP_CONTENT; mLayout.addView(cv, new LinearLayout.LayoutParams(height, width)); mLayout.addView(mTV, new LinearLayout.LayoutParams(height, width)); 最后通过customizedToast.setView(mLayout);把这个layout加载到你自定义的Toast中。 这样你就可以demo你的toast 了。