自定义Toast布局

LayoutInflater inflater=LayoutInflater.from(this);
View toast_view = inflater.inflate(R.layout.toast_layout,null);
Toast toast=new Toast(this);
toast.setView(toast_view);
toast.show();


你可能感兴趣的:(android)