Warnung: Du bist nicht angemeldet. Deine IP-Adresse wird bei Bearbeitungen öffentlich sichtbar.
Melde dich an oder
erstelle ein Benutzerkonto , damit Bearbeitungen deinem Benutzernamen zugeordnet werden. Ein eigenes Benutzerkonto hat eine ganze Reihe von Vorteilen.
Anscheinend wurde diese Bearbeitung bereits rückgängig gemacht.
Nachricht im Original (Android Training/Building a Simple User Interface ) == Create a Linear Layout == # In Android Studio, from the <code>res/layout</code> directory, open the <code>activity_my.xml</code> file. #: The BlankActivity template you chose when you created this project includes the <code>activity_my.xml</code> file with a RelativeLayout root view and a <code>TextView</code> child view. # In the Preview pane, click the Hide icon to close the Preview pane. # In Android Studio, when you open a layout file, you’re first shown the Preview pane. Clicking elements in this pane opens the WYSIWYG tools in the Design pane. For this lesson, you’re going to work directly with the XML. # Delete the [http://developer.android.com/reference/android/widget/TextView.html <code><TextView></code>] element. # Change the [http://developer.android.com/reference/android/widget/RelativeLayout.html <code><RelativeLayout></code>] element to [http://developer.android.com/reference/android/widget/LinearLayout.html <code><LinearLayout></code>]. # Add the [http://developer.android.com/reference/android/widget/LinearLayout.html#attr_android:orientation <code>android:orientation</code>] attribute and set it to <code>"horizontal"</code>. # Remove the <code>android:padding</code> attributes and the <code>tools:context</code> attribute.