Android Question AppCompat Without Toolbar

Cleidson

Member
Dear,
I come again to ask for your help. I installed and configured access to the application through biometrics. It worked. But, something curious happened: The title appeared in all the activities, a situation that was already configured not to happen, because I don't intend to use the toolbar.
Is there a way to fix this?
 

Cleidson

Member
Dear,
After some research find out how to solve the above problem.
In the manifest editor I used the following code:

AddPermission(android.permission.USE_BIOMETRIC)
AddPermission(android.permission.USE_FINGERPRINT)
SetApplicationAttribute(android:theme, "@style/MyAppTheme")
CreateResource(values, theme.xml,
<resources>
<style name="MyAppTheme" parent="Theme.AppCompat.Light">
</style>
</resources>
)

However, it showed the actionbar in the App. I don't need to show it in my App.

So, to resolve the situation just add use the following code:

AddPermission(android.permission.USE_BIOMETRIC)
AddPermission(android.permission.USE_FINGERPRINT)
SetApplicationAttribute(android:theme, "@style/MyAppTheme")
CreateResource(values, theme.xml,
<resources>
<style name="MyAppTheme" parent="Theme.AppCompat.Light.NoActionBar">
</style>
</resources>
)

It worked for me.
Thank you all.
 
Upvote 0
Top