0
sas12.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
// TODO Auto-generated method stub" "
Toast toast= Toast.makeText(getApplicationContext(),
" ",
Toast.LENGTH_SHORT);
toast.setGravity(Gravity.CENTER, 0, 0);
LinearLayout toastView = (LinearLayout) toast.getView();
ImageView imageCodeProject = new ImageView(getApplicationContext());
imageCodeProject.setImageResource(R.drawable.flushed_skin);
toast.setView(view);
toast.show();
toastView.addView(imageCodeProject, 0);
toast.show();
}
});
如何調整高度並使此吐司碼的透明度爲透明。如何調整高度並使該吐司碼的透明度爲透明。
但這吐司保持圖像@ Maurice – user3350245
您可以調整我的示例,並將ImageView放在佈局中而不是的TextView –