Установите ImageView под панелью инструментов и панелью навигации - PullRequest
0 голосов
/ 28 января 2020

Я пытаюсь показать изображение под панелью инструментов и панелью навигации. Как и на изображении ниже enter image description here

Мне нужна панель инструментов, строка состояния и панель навигации, чтобы быть прозрачным. Я буду очень благодарен, если кто-то поможет.

1 Ответ

1 голос
/ 28 января 2020
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">


<LinearLayout
    android:id="@+id/fragment_container"
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:focusableInTouchMode="true">

    <android.support.design.widget.AppBarLayout
        android:layout_width="match_parent"
        android:layout_height="?attr/actionBarSize"
        android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">

        <android.support.v7.widget.Toolbar
            android:id="@+id/toolbar"
            android:layout_width="match_parent"
            app:title=""
            android:layout_height="?attr/actionBarSize"
            android:background="@color/colorAccent"
            app:layout_collapseMode="pin" >

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text=""
                android:textColor="@android:color/white"
                android:textSize="22dp"/>

        </android.support.v7.widget.Toolbar>

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