Skip to content

Instantly share code, notes, and snippets.

@kenny-io
Created October 12, 2017 00:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenny-io/dfc3866d62540ec68008483b5e792809 to your computer and use it in GitHub Desktop.
Save kenny-io/dfc3866d62540ec68008483b5e792809 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"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:layout_margin="16dp"
tools:context="com.example.ekene.firestore.MainActivity">
<TextView
android:id="@+id/textDisplay"
android:textColor="#000"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="PhoneBook"
android:textSize="32sp"
android:layout_marginTop="32dp"
android:layout_gravity="center"/>
<EditText
android:id="@+id/name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="#000"
android:hint="Name"/>
<EditText
android:id="@+id/email"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="#000"
android:hint="Email"/>
<EditText
android:id="@+id/phone"
android:textColor="#000"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Phone"/>
<Button
android:id="@+id/save"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Save"
android:layout_gravity="center"/>
<TextView
android:id="@+id/displayMessage"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="serif"
android:textColor="#000"
android:text="Data from server will appear here !!"
android:layout_marginTop="20dp"
android:textSize="20sp"/>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment