title: How to create custom dialog box with two button in android?
body: <p>How to generate custom dialog box in android like this,
  <a href="https://i.stack.imgur.com/6fteP.png" rel="noreferrer"><img src="https://i.stack.imgur.com/6fteP.png" alt="enter image description here"></a></p>
  
  <p>I want just like this.
  How to generate it. please give me suggestion.</p>
  
  <p>i have used below code for dialog box, what is the problem in my code?
  I have not identify it. please share me any Idea.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@android:color/transparent"&gt;
  
      &lt;RelativeLayout
          android:id="@+id/rl_quit_learning"
          android:layout_width="match_parent"
          android:layout_height="150dp"
          android:background="@drawable/btn_white"
          android:paddingBottom="@dimen/thirty_dp"
          android:paddingLeft="@dimen/ten_dp"
          android:paddingRight="@dimen/ten_dp"
          android:paddingTop="@dimen/ten_dp"&gt;
  
          &lt;TextView
              android:id="@+id/tv_quit_learning"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentTop="true"
              android:layout_centerHorizontal="true"
              android:layout_margin="@dimen/ten_dp"
              android:text="Quit LEarning?"
              android:textSize="@dimen/twenty_sp"
              android:textStyle="bold" /&gt;
  
          &lt;TextView
              android:id="@+id/tv_description"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_below="@+id/tv_quit_learning"
              android:layout_centerHorizontal="true"
              android:layout_marginLeft="@dimen/ten_dp"
              android:layout_marginRight="@dimen/ten_dp"
              android:layout_marginTop="@dimen/twenty_dp"
              android:gravity="center"
              android:text="You are 400pts. away from \n unlocking rewards. Quit LEarning?"
              android:textSize="@dimen/sixteen_sp" /&gt;
      &lt;/RelativeLayout&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginTop="125dp"
          android:gravity="center"
          android:orientation="horizontal"&gt;
  
          &lt;Button
              android:id="@+id/btn_cancel"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="Cancel" /&gt;
  
          &lt;Button
              android:id="@+id/btn_video"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="Video" /&gt;
  
      &lt;/LinearLayout&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Please share me any Idea.
  Thanks.</p>