Studyon Minte9.com
Android




Simple UI



View - buttons, text fields
ViewGroups - invisible containers

%--- activity_main.xml


- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" > <EditText android:id="@+id/edit_message" android:layout_weight="1" android:layout_width="0dp" android:layout_height="wrap_content" android:hint="@string/edit_message" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/button_send" /> </LinearLayout> -
  %--- string.xml
- <?xml version="1.0" encoding="utf-8"?> <resources> <string name="app_name">My First App</string> <string name="action_settings">Settings</string> <string name="edit_message">Enter a message</string> <string name="button_send">Send</string> </resources> -
 


http://developer.android.com/training/basics/firstapp/building-ui.html