我有這個按鈕:數字按鈕時按下增加
<Button
android:id="@+id/button1"
android:layout_width="130dp"
android:layout_height="35dp"
android:layout_alignRight="@+id/editText2"
android:layout_alignTop="@+id/imageView1"
android:layout_marginTop="23dp"
android:text="Increase" />
我怎樣才能讓這個每當按鈕被點擊,在一個TextView計數上升,例如,如果該號碼是第一個0,然後你點擊它變成1的按鈕?
添加'onClick'屬性的按鈕觸發更新的TextView – donfuxx
發佈您的代碼你有什麼到現在爲止的方法。 –