Xin chào, tôi đang cố gắng đặt nội dung của mình bên dưới thanh công cụ nhưng tại thời điểm tôi chạy ứng dụng, một số nội dung bị ẩn sau khi nó ở bên dưới.Hiển thị nội dung dưới thanh công cụ
Tôi đã đọc về cách sử dụng bố cục khung để cố gắng tách riêng nhưng tôi đã gặp một chút khó khăn. Tôi hiện đang sử dụng mẫu ngăn điều hướng studio android cơ bản được cung cấp cùng với phần mềm và đã tự hỏi những thay đổi tôi phải thực hiện.
bố trí điều phối viên của tôi
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay" />
</android.support.design.widget.AppBarLayout>
<FrameLayout
android:id="@+id/fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
</android.support.design.widget.CoordinatorLayout>
bố cục ngăn My
<android.support.v4.widget.DrawerLayout 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/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:openDrawer="start">
<include
layout="@layout/app_bar_main"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<android.support.design.widget.NavigationView
android:id="@+id/nav_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true"
app:headerLayout="@layout/nav_header_main"
app:menu="@menu/activity_main_drawer" />
</android.support.v4.widget.DrawerLayout>
Tôi cần những gì thay đổi để làm?
Đã chỉnh sửa để thêm thuộc tính bố cục để làm cho mọi thứ rõ ràng hơn. – Karakuri
Cảm ơn bạn rất nhiều, sắp xếp các vấn đề đã không nhận ra nó đơn giản như thế nào: D – james