how i can to make transparent custom toolbar with visible toolbar items? I have a page with recycler view and I want to see my recyclerview under mine transparent toolbar with visible toolbar items. It's should looks like this
Asked
Active
Viewed 154 times
2 Answers
0
set toolbar like this:
<android.support.v7.widget.Toolbar
android:id="@+id/tbsobre"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@android:color/transparent"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"/>

Bruno Ferreira
- 1,561
- 1
- 10
- 17
0
try this
<android.support.v7.widget.Toolbar
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@drawable/background_toolbar" />
now create a background_toolbar.xml in res/drawble
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:angle="270"
android:endColor="@android:color/transparent"
android:startColor="#66000000"/>
</shape>
now set your toolbar

AskNilesh
- 67,701
- 16
- 123
- 163
-
@Nielsh Rathod ,your solution is not working as I want to. Okey, look here again. I have a page with recyclerview,so i want to see mine recyclerview under my transparent toolbar. – Vaniusha Jul 17 '17 at 10:47
-
add you full screen with quetion i did not get you – AskNilesh Jul 17 '17 at 10:50
-
you got it. Thanks a lot! – Vaniusha Jul 17 '17 at 11:05
-
Most Welcome @Vaniusha – AskNilesh Jul 17 '17 at 11:06