How to Change Action Bar Top Andoid Studio Background

Asked

Viewed 10 times

0

I need to make this layout, whose design is not mine I have already agreed to change the icone of the overflow, but I need to put this green bar with this image, being it a button, for now I only need the layout, part of java and features not yet. I’m new to Programming who can help.

Image of the project layout:

inserir a descrição da imagem aqui

I’ve tried to use:

<style name="Theme.PlugLightApp" parent="Theme.MaterialComponents.DayNight.DarkActionBar.Bridge">
   <item name="windowActionBar">@drawable/imgappbartop</item>
</style>

And I also tried the suggestion of a community contributor @cd1:

<style name="Theme.PlugLightApp" parent="Theme.MaterialComponents.DayNight.DarkActionBar.Bridge">
    <item name="actionBarStyle">@style/Widget.PlugLightApp.ActionBar</item>
</style>

<style name="Widget.PlugLightApp.ActionBar" parent="Widget.MaterialComponents.ActionBar.Primary">
    <item name="background">@drawable/imgappbartop</item>
</style>

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.