Remove gradient

Asked

Viewed 29 times

0

In my side_nav_bar the staining is defined as gradient:

<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
    android:angle="135"
    android:centerColor="#009688"
    android:endColor="#00695C"
    android:startColor="#4DB6AC"
    android:type="linear" />

How I remove the gradient so that only one color remains ?

  • To facilitate the response put the side_nav_bar xml.

  • @ramaral edited.

  • This is the xml of the gradient. What I want to see is how you assign this gradient to the side_nav_bar.

  • @ramaral maybe I didn’t understand it well, but this is the content of side_nav_bar.xml

  • @ramaral got what I wanted, just exchange the gradiant for Solid :)

  • @Douglas Put your solution as an answer. It can help someone with the same question in the future.

  • @Pabloalmeida ready.

Show 2 more comments

1 answer

0

The solution was simple, it was enough to change the gradiend for Solid:

<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid
    android:color="#00695C" />

Browser other questions tagged

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