Skip to content

Instantly share code, notes, and snippets.

@jobinjj
Created June 1, 2019 16:11
Show Gist options
  • Save jobinjj/5e8d1eabd2449373753adee80d99fc04 to your computer and use it in GitHub Desktop.
Save jobinjj/5e8d1eabd2449373753adee80d99fc04 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_margin="10dp">
<EditText
android:layout_margin="10dp"
android:id="@+id/ed1"
android:hint="Name"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<EditText
android:hint="Email"
android:layout_margin="10dp"
android:id="@+id/ed2"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="save"
android:id="@+id/btn_save"/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Load"
android:id="@+id/btn_load"/>
<TextView
android:id="@+id/txt_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Name"
android:layout_margin="8dp"
android:layout_gravity="center_horizontal"
style="@style/TextAppearance.Widget.AppCompat.Toolbar.Title"
/>
<TextView
android:id="@+id/txt_email"
android:layout_margin="8dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Email"
android:layout_gravity="center_horizontal"
style="@style/TextAppearance.Widget.AppCompat.Toolbar.Title"
/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Second Activity"
android:id="@+id/btn_second"/>
</LinearLayout>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment