Android Training/Building a Simple User Interface/de: Unterschied zwischen den Versionen

Die Seite wurde neu angelegt: „'''Hinweis''': Der Button benötigt kein <code>android:id</code> Attribut, da es in der Activity nicht referenziert wird.“
(Die Seite wurde neu angelegt: „== Ein Button hinzufügen == # Bearbeite die Datei <code>activity_my.xml</code> aus dem Ordner <code>res/layout</code> in Android Studio. # Definiere im <code>…“)
(Die Seite wurde neu angelegt: „'''Hinweis''': Der Button benötigt kein <code>android:id</code> Attribut, da es in der Activity nicht referenziert wird.“)
Zeile 115: Zeile 115:
</LinearLayout>
</LinearLayout>
</syntaxhighlight>
</syntaxhighlight>
'''Note''': This button doesn't need the <code>android:id</code> attribute, because it won't be referenced from the activity code.
'''Hinweis''': Der Button benötigt kein <code>android:id</code> Attribut, da es in der Activity nicht referenziert wird.
[[Datei:edittext_wrap.png|thumb|The EditText and Button widgets have their widths set to "wrap_content".]]
[[Datei:edittext_wrap.png|thumb|The EditText and Button widgets have their widths set to "wrap_content".]]
The layout is currently designed so that both the <code>EditText</code> and <code>Button</code> widgets are only as big as necessary to fit their content, as shown in the picture.
The layout is currently designed so that both the <code>EditText</code> and <code>Button</code> widgets are only as big as necessary to fit their content, as shown in the picture.
11.008

Bearbeitungen