Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dialog box without title

I need to delete the title in a dialog. Note i dont need a blank title.I need to delete the title section.Following is my code:

final Dialog dialog1=new Dialog(context);
    dialog1.setContentView(R.layout.redeemvoucher_first);
    dialog1.setCanceledOnTouchOutside(true);
    dialog1.getWindow().setLayout(900,500);
        dialog1.show();
like image 401
Joyson Avatar asked Dec 26 '22 17:12

Joyson


1 Answers

try this while creating dialog

dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
like image 164
Sankar Avatar answered Jan 09 '23 01:01

Sankar