What I am trying to do: I am trying to make a custom dialog in android With rounded corners.
What is happening: I am able to make c
Create a xml in drawable , say dialog_bg.xml
set it as the background in your layout xml
android:background="@drawable/dialog_bg"
Set the background of the dialog's root view to transparent, because Android puts your dialog layout within a root view that hides the corners in your custom layout.
dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));