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

Aus Android Wiki
(Neue Version von externer Quelle importiert)
 
(Neue Version von externer Quelle importiert)
 
Zeile 1: Zeile 1:
== Respond to the Send Button ==
== Respond to the Send Button ==
# In Android Studio, from the <code>res/layout</code> directory, edit the<code>content_my.xml</code> file.
# 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.
# 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.

Aktuelle Version vom 20. Dezember 2015, 20:27 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[Quelltext bearbeiten]

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