Translations:Android Training/Starting Another Activity/2/en: Unterschied zwischen den Versionen

Aus Android Wiki
(Neue Version von externer Quelle importiert)
(kein Unterschied)

Version vom 20. Dezember 2015, 21:22 Uhr

Nachricht im Original (Android Training/Starting Another Activity)
== Respond to the Send Button ==
# In Android Studio, from the <code>res/layout</code> directory, edit the <code>content_my.xml</code> file.
# Add the <code>[http://developer.android.com/reference/android/view/View.html#attr_android:onClick android:onClick]</code> attribute to the <code>[http://developer.android.com/reference/android/widget/Button.html <Button>]</code> element.

Respond to the Send Button

  1. In Android Studio, from the res/layout directory, edit thecontent_my.xml file.
  2. Add the android:onClick attribute to the <Button> element.