Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android activity as dialog, but without a title bar

I have an activity that has the following set as theme:

android:theme="@android:style/Theme.Dialog" 

However, there is a title bar in the activity-dialog that appears, that uses up the little available space that I have. How can I remove it?

like image 792
Shade Avatar asked Jun 12 '11 22:06

Shade


1 Answers

Try doing requestWindowFeature(Window.FEATURE_NO_TITLE); in onCreate. It'll need to be done immediately after calling super.onCreate and just before setContentView.

like image 75
Femi Avatar answered Sep 18 '22 23:09

Femi