Toast改變背景以及度數設定

iteye_15461發表於2010-08-26

1.Toast toast = Toast.makeText(context, "Toast text", Toast.LENGTH_SHORT); 
View view = toast.getView(); 
view
.setBackgroundResource(/*你的背景*/); 
toast
.setView(view); 
toast
.show(); 
2.myTextView.setText ( "78" + (char) 0x00B0 ); 

相關文章