私はちょうどアンドロイドを学び始めました。そして、どうすれば画像を変更できImageView
ますか?つまり、レイアウトに設定された画像がありますが、コーディングによってその画像を変更したいのですが、どうすればよいですか?
これがxmlファイルです
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#cc8181"
>
<ImageView
android:id="@+id/image"
android:layout_width="50dip"
android:layout_height="fill_parent"
android:src="@drawable/icon"
android:layout_marginLeft="3dip"
android:scaleType="center"/>
返信ありがとうございます。