Editing Translations:Android Training/Building a Simple User Interface/5/en (section)

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
Message definition (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.
Please note that all contributions to Android Wiki are considered to be released under the Creative Commons Attribution/Share-Alike Lizenz 3.0 (see DroidWiki:Urheberrechte for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)