I was using Theme.AppCompat.Light.NoActionBar on my activities which worked flawlessly but I had to migrate to Androidx to use a library and after migrating there's now an actionBar.

I tried googling but could not get any fixes

Here's my code


<style name="NoActionBar" parent="Theme.AppCompat.Light.NoActionBar">
    <!-- Customize your theme here. -->
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
    <item name="colorAccent">@color/colorAccent</item>


<activity android:name=".LoginActivity" android:theme="@style/NoActionBar"
        android:configChanges="orientation" android:screenOrientation="portrait"/>

Warm tip !!!

This article is reproduced from Stack Exchange / Stack Overflow, please click

Trending Tags

Related Questions