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

Aus Android Wiki
(Die Seite wurde neu angelegt: „=== [http://developer.android.com/reference/android/view/View.html#attr_android:layout_width <code>android:layout_width</code>] und [http://developer.android.c…“)
 
K (FuzzyBot verschob die Seite Translations:Android Training/Eine einfache Benutzeroberfläche erstellen/16/de nach Translations:Android Training/Building a Simple User Interface/16/de, ohne dabei eine Weiterleitung anzulegen: Teil der übersetzba…)
 

Aktuelle Version vom 18. Dezember 2015, 03:24 Uhr

Nachricht im Original (Android Training/Building a Simple User Interface)
=== [http://developer.android.com/reference/android/view/View.html#attr_android:layout_width <code>android:layout_width</code>] and [http://developer.android.com/reference/android/view/View.html#attr_android:layout_height <code>android:layout_height</code>] ===
Instead of using specific sizes for the width and height, the <code>"wrap_content"</code> value specifies that the view should be only as big as needed to fit the contents of the view. If you were to instead use <code>"match_parent"</code>, then the <code>EditText</code> element would fill the screen, because it would match the size of the parent <code>LinearLayout</code>. For more information, see the Layouts guide.

android:layout_width und android:layout_height[Quelltext bearbeiten]

Anstelle von festen Größen für die Breite und Höhe, gibt der Wert "wrap_content" an, dass das View so groß wie nötig sein soll um die Inhalte anzuzeigen. Wenn du stattdessen "match_parent" verwendest, wird das EditText Element das komplette Display ausfüllen, weil es die Größe des übergeordneten LinearLayout verwendet. Mehr Informationen findest du im Layouts Guide.