Remove ActionBar from Activity that extends appcompat-v7


If you want to remove ActionBar from a particular Android Activity that extends ActionBarActivity from appcompat-v7 library then all you need to do is add the below to tags in the style.xml file,

<item name="android:windowActionBar">false</item>
<item name="android:windowNoTitle">true</item>
Example :
<resources>

    <!--
        Base application theme, dependent on API level. This theme is replaced
        by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
    -->
    <style name="AppBaseTheme" parent="Theme.AppCompat.Light">
        <!--
            Theme customizations available in newer API levels can go in
            res/values-vXX/styles.xml, while customizations related to
            backward-compatibility can go here.
        -->
    </style>

    <!-- Application theme. -->
    <style name="AppTheme" parent="AppBaseTheme">
       	<item name="android:windowActionBar">false</item>
    	<item name="android:windowNoTitle">true</item>
    </style>

</resources>