Remove title space in AlertDialog

1

I have the following Dialog in my application

Umpasswordfieldnotfilledwithacancelbuttonandanacceptbuttonunderneath,allwithinawhiterectangle.Thebackgroundofthescreenisblackand,belowthewhiterectangle,thephrase"The Globe censored". Below the sentence, a numeric keypad is displayed.

As you can see, I will not use Title ( nomequalquer.setTitle("blabla") ) nor Message. I would like to know what I can do to make this white space where the title of about 50dp would be missing.

    
asked by anonymous 13.06.2016 / 03:06

1 answer

1

Just add before before dialog.setContentView(R.layout.seulayout) and immediately after instantiating your dialog, the following line: dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);

    
13.06.2016 / 13:12