Android指定Toast信息显示的位置并使用Toast显示其他View
TextView t = new TextView(this);t.setText("bbbbbbbbbb");
ImageView image = new ImageView(this);
image.setImageResource(R.drawable.ic_launcher);
EditText edit = new EditText(this);
edit.setText("Hello");
Toast toast = new Toast(this);
toast.setView(image);
//toast.setView(image);
bsp; //toast.setView(edit);
toast.setGravity(Gravity.TOP, 50, 100);
toast.show();
摘自 Central-Perk的专栏
补充:移动开发 , Android ,