Created
December 11, 2017 03:16
-
-
Save mitchtabian/12ff2cb640757a3118d53dbfc8a8f9e7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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