Browse Source

Build app layout:

- Add EditText and Button elements
  - Update string resources
master
jimi 13 years ago
parent
commit
3ebb72ebc1
  1. 9
      res/layout/main.xml
  2. 6
      res/values/strings.xml

9
res/layout/main.xml

@ -3,5 +3,14 @@
android:orientation="horizontal" android:orientation="horizontal"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" > android:layout_height="match_parent" >
<EditText
android:id="@+id/edit_message"
android:layout_width="wrap_content"
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> </LinearLayout>

6
res/values/strings.xml

@ -1,4 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources>
<string name="app_name">MainActivity</string>
<string name="app_name">Sample App</string>
<string name="edit_message">Enter a message</string>
<string name="button_send">Send</string>
<string name="menu_settings">Settings</string>
<string name="title_activity_main">MainActivity</string>
</resources> </resources>