Skip to content

Instantly share code, notes, and snippets.

@mitchtabian
Created December 11, 2017 03:16
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/12ff2cb640757a3118d53dbfc8a8f9e7 to your computer and use it in GitHub Desktop.
Save mitchtabian/12ff2cb640757a3118d53dbfc8a8f9e7 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="200dp"
android:padding="10dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Your Custom Dialog Heading"
android:textSize="18sp"
android:textColor="#000"
android:id="@+id/heading"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/heading"
android:layout_marginTop="20dp"
android:background="@null"
android:textColor="#000"
android:hint="enter some text..."
android:id="@+id/input"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="OK"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_marginRight="20dp"
android:textSize="18sp"
android:textColor="#33bbff"
android:id="@+id/action_ok"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="CANCEL"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_marginRight="20dp"
android:textSize="18sp"
android:textColor="#33bbff"
android:id="@+id/action_cancel"/>
</RelativeLayout>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment