<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:background="#78000000"
android:padding="@dimen/activity_margin"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:textColor="#ffffff"
android:text="This is your dialog with transparent background."
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<Button
android:id="@+id/btn_close_overlay"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/colorPrimary"
android:textColor="#ffffff"
android:text="Dismiss"/>
</LinearLayout>