Difference between revisions of "Translations:Android Training/Starting Another Activity/2/en"

From Android Wiki
(Neue Version von externer Quelle importiert)
 
(Neue Version von externer Quelle importiert)
 
Line 1: Line 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.

Latest revision as of 21:27, 20 December 2015

Message definition (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[edit source]

  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.