All translations
Enter a message name below to show all available translations.
Found 2 translations.
Name | Current message text |
---|---|
h Deutsch (de) | == 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><LinearLayout></code> Element, direkt nach dem <code><EditText></code> Element, ein [http://developer.android.com/reference/android/widget/Button.html <code><Button></code>] Element. # Setze für die width und height Attribute des Buttons <code>"wrap_content"</code> als Wert, sodass der Button nur so groß ist, damit der komplette Button-Text angezeigt wird. # Definiere die Aufschrift des Buttons mit dem [http://developer.android.com/reference/android/widget/TextView.html#attr_android:text <code>android:text</code>] Attribut; setze als Wert die <code>button_send</code> Zeichenketten-Ressource, welche du im vorherigen Abschnitt definiert hast. Dein <code><LinearLayout></code> sollte wie folgt aussehen: |
h English (en) | == Add a Button == # In Android Studio, from the <code>res/layout</code> directory, edit the <code>activity_my.xml</code> file. # Within the <code><LinearLayout></code> element, define a [http://developer.android.com/reference/android/widget/Button.html <code><Button></code>] element immediately following the <code><EditText></code> element. # Set the button's width and height attributes to <code>"wrap_content"</code> so the button is only as big as necessary to fit the button's text label. # Define the button's text label with the [http://developer.android.com/reference/android/widget/TextView.html#attr_android:text <code>android:text</code>] attribute; set its value to the <code>button_send</code> string resource you defined in the previous section. Your <code><LinearLayout></code> should look like this: |