Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to create this particular dialog view in android?
    primarykey
    data
    text
    <blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/5933003/how-to-create-the-above-custom-dialog-in-android">How to create the above custom dialog in android?</a> </p> </blockquote> <p>Can someone tell me how to create the above dialog view similar/exactly to the link <a href="http://www.google.com.sg/imglanding?q=autoguard%20blackbox&amp;hl=en&amp;sa=X&amp;tbm=isch&amp;prmd=ivns&amp;tbnid=CQTLl4767M6hpM:&amp;imgrefurl=http://droidmill.com/autoguard-pro-124459.html&amp;imgurl=http://cdn1.droidmill.com/media/market-media/com.hovans.autoguard.key_1.png&amp;w=480&amp;h=854&amp;ei=QJvMTY2HFoL8vQPx7-H5Bg&amp;zoom=1&amp;iact=rc&amp;page=1&amp;tbnh=175&amp;tbnw=98&amp;start=0&amp;ved=1t:429,r:8,s:0&amp;biw=1366&amp;bih=653" rel="nofollow noreferrer">here</a>, whereby the focus of the problem is to create the view in the centre of the picture?</p> <p>I have done some research and it made me wonder should i be using a custom xml to create a custom dialog view or should i be using alertdialog to create the exact view programmability shown above? And even if alertdialog is possible how am i going to accommodate with so many textview messages shown in the middle of the dialog picture given alertdialog limitation? Eg: "builder.setMessage("This is the alert's body");" If you know what i mean!! </p> <p>Can someone tell me the easiest way to get the exact same view because i'm kinna doing the same app and new to android.. Thanks :)</p> <p><strong>Updated</strong></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="wrap_content" android:layout_height="wrap_content"&gt; &lt;ImageView android:id="@+id/ImageView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_alignParentTop="true"/&gt; &lt;TextView android:id="@+id/TextView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/ImageView1"/&gt; &lt;Button android:id="@+id/Button1" android:layout_below="@id/TextView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:text="Exit" /&gt; &lt;Button android:id="@+id/Button2" android:layout_toLeftOf="@id/Button1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:text="Show Video" /&gt; &lt;Button android:id="@+id/Button3" android:layout_toRightOf="@id/Button1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:text="Show Map" /&gt; &lt;/RelativeLayout&gt; </code></pre> <p><strong>Updated</strong> </p> <pre><code> &lt;ImageView android:id="@+id/ImageView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:layout_alignParentTop="true"/&gt; &lt;TextView android:id="@+id/TextView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#FFF" android:layout_below="@+id/ImageView1"/&gt; &lt;TextView android:id="@+id/TextView2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#FFF" android:layout_below="@+id/TextView1" /&gt; &lt;TextView android:id="@+id/TextView3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#FFF" android:layout_below="@+id/TextView2" /&gt; &lt;Button android:id="@+id/Button2" android:layout_toRightOf="@id/Button1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:text="Archive" /&gt; &lt;Button android:text="Show Video" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/Button1" android:layout_alignParentBottom="true"&gt;&lt;/Button&gt; &lt;Button android:text="Show Map" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/Button2" android:layout_alignParentBottom="true" android:layout_toRightOf="@id/Button2" &gt;&lt;/Button&gt; &lt;/RelativeLayout&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload