Translations:Android Training/Starting Another Activity/2/en: Unterschied zwischen den Versionen
(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, 21:27 Uhr
Respond to the Send Button[Quelltext bearbeiten]
- In Android Studio, from the
res/layout
directory, edit thecontent_my.xml
file. - Add the
android:onClick
attribute to the<Button>
element.