Zi 字媒體
2017-07-25T20:27:27+00:00
Android-設定ImageView 的顯示資源檔圖片
語法:t1.setImageResource(R.drawable.圖檔名稱)
範例:
import android.widget.*;
ImageView t1 = (ImageView)
findViewById(R.id.imageButton1);
t1.setImageResource(R.drawable.圖檔名稱);
寫了
5860316篇文章,獲得
23313次喜歡