已经设置了match parent了但点开还是什么也没有
解决方案 »
- 画面缩放怎么实现?
- 准备学习NDK里面的OPEN GLES,大伙进来帮帮忙入门……
- 征集android 解析PDF方法
- 打开手机自带的应用的时候如何把自己做的应用打开?
- 怎么实现点击弹出上下文菜单而不是长按弹出??
- 这种xml要怎么解析啊
- 在网上找了一个android蓝牙通信的例子程序,想利用例子与其他蓝牙设备进行串口同喜,程序能正常运行且搜索到周围设配,但不能配对和连接,请高手帮我看下
- andriod如何实现类间调用
- 跪求ANDROID hello工程出错
- 下拉放大位移
- 我设置了imagebutton点击跳转手机qq,代码运行没有报错,但真机调试的时候店里我添加的imagebutton没有反应
- mipush的接收消息的服务中,每个方法的context是来自哪的,在没有启动应用时会调用回调函数吗
<?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:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"> <com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/nav_view"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="0dp"
android:layout_marginEnd="0dp"
android:background="?android:attr/windowBackground"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:menu="@menu/bottom_nav_menu" /> <fragment
android:id="@+id/nav_host_fragment"
android:name="androidx.navigation.fragment.NavHostFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:defaultNavHost="true"
app:layout_constraintBottom_toTopOf="@id/nav_view"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.0"
app:navGraph="@navigation/mobile_navigation" /></androidx.constraintlayout.widget.ConstraintLayout>