Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Regarding removal of Activity Title bar in Android

i have already set the theme of my activity as android:theme = "@android:style/Theme.Dialog" but i also want to remove the title bar of the activity. so how to use android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" along with the dialog theme.

like image 409
user506591 Avatar asked Nov 13 '10 08:11

user506591


2 Answers

Try creating a custom style that extends Theme.Dialog:

<resources>
    <style name="DialogNoTitle" parent="android:Theme.Dialog">
        <item name="android:windowNoTitle">true</item>
    </style>
</resources>
like image 161
Peter Knego Avatar answered Sep 21 '22 02:09

Peter Knego


I believe you can specify this in your activity's onCreate():

requestWindowFeature(Window.FEATURE_NO_TITLE);
like image 30
aptwebapps Avatar answered Sep 20 '22 02:09

aptwebapps