I want to create a custom dialog with the layout as shown in the picture. The cross/cl
Relative layout will be your parent one and then add close button apply android:layout_alignParentRight="true" and android:layout_alignParentTop="true" and even give right and top margin in minus as per your requirement.
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
Code
Output