Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //activity_main.xml file -
- <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/text_message"
- android:layout_weight="1"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:hint="@string/text_message" />
- <Button android:layout_height="wrap_content"
- android:layout_width="wrap_content"
- android:text="@string/send_button" />
- </LinearLayout>
- //strings.xml file -
- <resources>
- <string name="app_name">CheckApp</string>
- <string name="hello_world">Hello world!</string>
- <string name="menu_settings">Settings</string>
- <string name="text_message">Write something</string>
- <string name="send_button">Send</string>
- <string name="title_activity_main">MainActivity</string>
- </resources>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement