Zum Inhalt springen

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

keine Bearbeitungszusammenfassung
(Die Seite wurde neu angelegt: „'''Hinweis''': Der Button benötigt kein <code>android:id</code> Attribut, da es in der Activity nicht referenziert wird.“)
Keine Bearbeitungszusammenfassung
Zeile 115: Zeile 115:
</LinearLayout>
</LinearLayout>
</syntaxhighlight>
</syntaxhighlight>
'''Hinweis''': Der Button benötigt kein <code>android:id</code> Attribut, da es in der Activity nicht referenziert wird.
'''Hinweis''': Der Button benötigt kein <code>android:id</code> Attribut, da es im Activity-Code 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

Cookies helfen uns bei der Bereitstellung von Android Wiki. Durch die Nutzung von Android Wiki erklärst du dich damit einverstanden, dass wir Cookies speichern.