TheFinestArtist / FinestWebView-Android

Beautiful and customizable Android Activity that shows web pages within an app.
https://finestwebview.web.app
2.32k stars 532 forks source link

How to set gradient color to Toolbar? #170

Open jhwsx opened 5 years ago

jhwsx commented 5 years ago

I have a graident drawable, which would be the background of Toolbar. The xml file is:

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
    <gradient
        android:angle="135"
        android:startColor="@color/gradient_start_color"
        android:endColor="@color/gradient_end_color"/>
</shape>

But I cannot find the corresponding API.