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

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

嘗試將導(dǎo)航抽屜按鈕添加到應(yīng)用程序欄

嘗試將導(dǎo)航抽屜按鈕添加到應(yīng)用程序欄

qq_笑_17 2021-06-11 17:26:35
我正在關(guān)注本教程我被困在我試圖將按鈕添加到應(yīng)用程序欄的地方。當(dāng)我向右滑動(dòng)時(shí),會(huì)出現(xiàn)導(dǎo)航抽屜,因此可以正常工作。它只是我遇到問(wèn)題的欄中的按鈕,當(dāng)我將其添加v7.widget.Toolbar到 FrameLayout 下的 XML 時(shí),它會(huì)破壞布局。最初在我的 XML 中,我只有一個(gè)約束布局,一個(gè) Scrollview 作為一個(gè)孩子,里面有一個(gè) LinearView(垂直)。但是我無(wú)法理解為什么這不起作用:<?xml version="1.0" encoding="utf-8"?><!-- Use DrawerLayout as root container for activity --><android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:app="http://schemas.android.com/apk/res-auto"    android:id="@+id/drawer_layout"    android:layout_width="match_parent"    android:layout_height="match_parent"    android:fitsSystemWindows="true">    <!-- Container for contents of drawer - use NavigationView to make configuration easier -->    <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:menu="@menu/drawer_view"        app:headerLayout="@layout/nav_header" />    <!-- Layout to contain contents of main body of screen (drawer will slide over this) -->    <FrameLayout        android:id="@+id/content_frame"        android:layout_width="match_parent"        android:layout_height="match_parent" >        <android.support.v7.widget.Toolbar            android:id="@+id/toolbar"            android:layout_width="match_parent"            android:layout_height="?attr/actionBarSize"            android:background="?attr/colorPrimary"            android:theme="@style/ThemeOverlay.AppCompat.ActionBar" />        <ScrollView            android:layout_width="match_parent"            android:layout_height="match_parent">當(dāng)我運(yùn)行它時(shí),頂部欄似乎超過(guò)了整個(gè)窗口并且顏色消失并且按鈕不可點(diǎn)擊,因?yàn)長(zhǎng)inearLayout它位于它的頂部。我哪里錯(cuò)了?
查看完整描述

2 回答

?
翻閱古今

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

放在NavigationView下面FrameLayout


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

添加回答

舉報(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)