2017-07-17 29 views

答えて

0

この

<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" /> 

は今の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> 

をbackground_toolbar.xmlを作成してみてくださいツールバーを設定する

+0

@Nielsh Rathod、あなたのソリューションは私がしたいように機能していません。おい、もう一度見てね。私はrecyclerviewのページを持っているので、透明ツールバーの下で私のrecyclerviewを見たいと思っています。 – Vaniusha

+0

あなたにquetionの全画面を追加しました。私はあなたを得ませんでした –

+0

私の質問をもう一度チェックしてください。私は編集しました – Vaniusha

0

設定ツールバーのように見えるはずですそれはです:

<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"/> 
関連する問題