Shade Shade - 4 months ago 13
Android Question

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?

Answer

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