Hiding the main layout of Custom Dialog
<p>I have made layout for custom dialog, it has inside two imageview. I want to show both Imageview when dialog appear. and i want to hide the main layout of my xml file I have used "#00000000" as background:color, but it is not working.
Is there any way to do the same?</p>

<p>Thanks.</p>

<p>Here is my layout. I have taken screen shot please have a look i want to hide the border which are showing in image.</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_height="fill_parent" android:layout_width="fill_parent"
    android:orientation="vertical" android:background="#00000000"&gt;
    &lt;LinearLayout android:id="@+id/linearLayout1"
        android:layout_height="wrap_content"
        android:layout_width="wrap_content"&gt;
        &lt;ImageView android:id="@+id/img_closeimage" android:src="@drawable/product_zoom_close"
                android:layout_width="wrap_content" android:layout_height="wrap_content"
                android:clickable="true"&gt;&lt;/ImageView&gt;

    &lt;/LinearLayout&gt;
    &lt;LinearLayout android:id="@+id/linearLayout2"
        android:layout_marginLeft="25dip" android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_marginTop="-5dip" android:layout_marginBottom="20dip" android:layout_marginRight="20dip"&gt;
        &lt;ImageView android:id="@+id/img_ProductZoom" android:src="@drawable/index"
                android:layout_width="wrap_content" android:layout_height="wrap_content"
                 &gt;&lt;/ImageView&gt;

    &lt;/LinearLayout&gt;
&lt;/LinearLayout&gt;
</code></pre>

<p><a href="http://i.stack.imgur.com/1wOl1.png" rel="nofollow">image description here</a></p>
