0
我正在創建一個應用程序作爲任務的一部分。當它被觸碰時,它會打開或關閉。我是新手,並且不知道如何做。我只是添加一個圖像,其中燈泡關閉到圖像查看器,現在我不知道該寫什麼.java文件,以使其工作..........更改圖像視圖ANDROID中的圖像
<ImageView
android:id="@+id/imageView1"
android:contentDescription="@string/off"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:src="@drawable/off" />