How to assign background transparency to my toolbar?

1

Good day.

In my application I have a toolbar in which there is a button that calls the side menu.

How could I do to put transparency in the background so that something like that remains

This is the toolbar xml

<android.support.design.widget.AppBarLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:theme="@style/NavigationViewTheme">


    <android.support.v7.widget.Toolbar
        android:id="@+id/toolbar"
        android:layout_width="match_parent"
        android:layout_height="?attr/actionBarSize"
        app:popupTheme="@style/AppTheme.CustomTheme"
        android:background="@android:color/transparent"
        android:backgroundTint="@android:color/transparent"
        android:clickable="true" />

</android.support.design.widget.AppBarLayout>

<include layout="@layout/content_main" />

Of atheist thanks.

    
asked by devjav 19.01.2017 в 21:36
source

1 answer

1

The solution was to remove this property from the container of all my fragments

 app:layout_behavior="@string/appbar_scrolling_view_behavior"
    
answered by 19.01.2017 в 23:04