I have tried to make a custom alert dialog and it mostly works very well. the functionality is working perfectly but the view is behaving in a weird way. The dialog layout c
The CustomPanel of an AlertDialog has a 5dp top and bottom padding. You can override these using:
AlertDialog
alert.setView(dialogView, 0, 0, 0, 0);