i want to build a customized dialog just like the one shown in image:
i
Have a look at this tutorial, it might be of some help.