androidcoding-styleandroid-sdk-2.1android-titlebarandroid-theme

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.


Solution

  • 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>