0
可視のツールバーアイテムで透明なカスタムツールバーを作成する方法はありますか? 私はリサイクラービューのページを持っています。私は私のrecyclerviewをツールバーアイテムが見える透明なツールバーの下に見たいと思っています。 このようなthis透明なツールバーアイテムで透明なツールバーを作成する方法
可視のツールバーアイテムで透明なカスタムツールバーを作成する方法はありますか? 私はリサイクラービューのページを持っています。私は私のrecyclerviewをツールバーアイテムが見える透明なツールバーの下に見たいと思っています。 このような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" />
は今の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を作成してみてくださいツールバーを設定する
設定ツールバーのように見えるはずですそれはです:
<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"/>
@Nielsh Rathod、あなたのソリューションは私がしたいように機能していません。おい、もう一度見てね。私はrecyclerviewのページを持っているので、透明ツールバーの下で私のrecyclerviewを見たいと思っています。 – Vaniusha
あなたにquetionの全画面を追加しました。私はあなたを得ませんでした –
私の質問をもう一度チェックしてください。私は編集しました – Vaniusha