第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

布局從屏幕的頂部到底部

布局從屏幕的頂部到底部

慕沐林林 2023-05-17 17:52:39
我有一個(gè)屏幕,其中有一個(gè)操作欄,然后是一本書的標(biāo)題和章節(jié)本身。問(wèn)題是,章節(jié)從上到下,標(biāo)題被截?cái)?。章?jié)文本還與頂部的應(yīng)用欄和底部的底部導(dǎo)航視圖重疊。請(qǐng)幫忙內(nèi)容主頁(yè)<?xml version="1.0" encoding="utf-8"?><androidx.constraintlayout.widget.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:layout_width="match_parent"    android:layout_height="match_parent"    app:layout_behavior="@string/appbar_scrolling_view_behavior"    tools:context=".activities.HomeActivity"    tools:showIn="@layout/activity_home">    <FrameLayout        android:id="@+id/frameLayoutHome"        android:layout_width="match_parent"        android:layout_height="match_parent">    </FrameLayout></androidx.constraintlayout.widget.ConstraintLayout>活動(dòng)之家<?xml version="1.0" encoding="utf-8"?><androidx.constraintlayout.widget.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:layout_width="match_parent"    android:layout_height="match_parent"    tools:context=".activities.HomeActivity">    <androidx.appcompat.widget.Toolbar        android:id="@+id/toolbar"        android:layout_width="match_parent"        android:layout_height="wrap_content"        android:background="?attr/colorPrimary"        app:layout_constraintEnd_toEndOf="parent"        app:layout_constraintStart_toStartOf="parent"        app:layout_constraintTop_toTopOf="parent"        app:popupTheme="@style/ThemeOverlay.AppCompat.Light" /></androidx.constraintlayout.widget.ConstraintLayout>
查看完整描述

1 回答

?
白衣非少年

TA貢獻(xiàn)1155條經(jīng)驗(yàn) 獲得超0個(gè)贊

試試這個(gè)作為 activity_home 布局:


<?xml version="1.0" encoding="utf-8"?>

<RelativeLayout 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:layout_width="match_parent"

android:layout_height="match_parent"

tools:context=".HomeActivity">


<LinearLayout

    android:id="@+id/liner_layout"

    android:orientation="vertical"

    android:layout_height="match_parent"

    android:layout_width="match_parent"

    >

    <androidx.appcompat.widget.Toolbar

        android:id="@+id/toolbar"

        android:layout_width="match_parent"

        android:layout_height="?attr/actionBarSize"

        android:background="@color/colorPrimary"

        app:popupTheme="@style/ThemeOverlay.AppCompat.Light" />


    <include

        android:id="@+id/include"

        layout="@layout/content_home"

        android:layout_width="match_parent"

        android:layout_height="wrap_content"

        app:layout_behavior="@string/appbar_scrolling_view_behavior"/>


</LinearLayout>


<com.google.android.material.bottomnavigation.BottomNavigationView

    android:id="@+id/bottomNavigationView"

    android:layout_width="match_parent"

    android:layout_height="wrap_content"

    app:menu="@menu/nav_menu"

    android:layout_alignParentBottom="true" />

保持 content_home 布局不變。


查看完整回答
反對(duì) 回復(fù) 2023-05-17
  • 1 回答
  • 0 關(guān)注
  • 129 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)