In my app I have this situation: I open dialog and set the content view like this:
Dialog dialog = new Dialog(context);
dialog.setContentView(R.layout.dialog);
dialog.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/patientsbg"
android:orientation="vertical" >
</LinearLayout>
And the result is this:
I want to have dialog exactly with my image and with no borders and spaces. Any idea ?