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.xml

<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>
</style>

Manifest.xml

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

Warm tip !!!

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

Trending Tags

Related Questions