이 레이아웃이 있습니다. 이 레이아웃은 중첩 된 조각BottomNavigationView 위의 컨테이너 레이아웃 설정
내가 BottomNavigationView 상단 위에app_bar_main
을 설정하는 방법
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout 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/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="client.MainActivity">
<include
layout="@layout/app_bar_main"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<android.support.design.widget.BottomNavigationView
android:id="@+id/navigation"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="0dp"
android:layout_marginStart="0dp"
android:background="?android:attr/windowBackground"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:menu="@menu/navigation" />
</android.support.constraint.ConstraintLayout>
에 대한 BottomNavigationView 및 컨테이너를 포함?
때문에 지금 :
무엇을 의미합니까? – Mercato
app_bar_main이 화면 하단에 그려집니다. 하지만 당신이 제공 한 사진의 상단 BottomNavigationView – ip696
에 필요합니다, app_bar_main은 BottomNavigationView의 맨 위에 있습니다; 그렇지 않은가? – Mercato