Skip to content

Instantly share code, notes, and snippets.

@mitchtabian
Created December 11, 2017 03:15
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 mitchtabian/9c3f1fd149af7b9b9f710cbcf94fe80b to your computer and use it in GitHub Desktop.
Save mitchtabian/9c3f1fd149af7b9b9f710cbcf94fe80b to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
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"
tools:context="codingwithmitch.com.dialogfragmentactivity.MainActivity">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/activity_container">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:text="This is an Activity"
android:id="@+id/heading"
android:textSize="18sp"
android:textColor="#000"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="open dialog"
android:layout_centerHorizontal="true"
android:id="@+id/open_dialog"
android:layout_below="@+id/heading"
android:layout_marginTop="20sp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/input_display"
android:layout_below="@+id/open_dialog"
android:layout_marginTop="20dp"
android:layout_centerHorizontal="true"
android:textSize="15sp"
android:textColor="#000"/>
</RelativeLayout>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment