Translations:Android Training/Building a Simple User Interface/23/en: Unterschied zwischen den Versionen
Neue Version von externer Quelle importiert |
K FuzzyBot verschob die Seite Translations:Android Training/Eine einfache Benutzeroberfläche erstellen/23/en nach Translations:Android Training/Building a Simple User Interface/23/en, ohne dabei eine Weiterleitung anzulegen: Teil der übersetzba… |
||
(kein Unterschied)
|
Aktuelle Version vom 18. Dezember 2015, 03:24 Uhr
Add a Button[Quelltext bearbeiten]
- In Android Studio, from the
res/layout
directory, edit theactivity_my.xml
file. - Within the
<LinearLayout>
element, define a<Button>
element immediately following the<EditText>
element. - Set the button's width and height attributes to
"wrap_content"
so the button is only as big as necessary to fit the button's text label. - Define the button's text label with the
android:text
attribute; set its value to thebutton_send
string resource you defined in the previous section.
Your <LinearLayout>
should look like this: