在形成 ui 时,scrollview 被截断并要求解决。
这是代码。
Auth::guard('api')->check()
如您所见,BottomNavigationView 与 ScrollView 重叠并覆盖它。这种时候有解决办法吗?
在形成 ui 时,scrollview 被截断并要求解决。
这是代码。
Auth::guard('api')->check()
如您所见,BottomNavigationView 与 ScrollView 重叠并覆盖它。这种时候有解决办法吗?
假设您的 BottomNavigationView
是固定的并且始终在底部可见:您可以将 FrameLayout
换成 LinearLayout
并带有 vertical
方向
<LinearLayout 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="wrap_content"
android:background="@color/colorBlack"
android:id="@+id/main_container"
android:orientation="vertical"
tools:context=".MainActivity">
... rest of code
,
将主布局从 FrameLayout 更改为 RelativeLayout 并将 RelativeLayout 高度设置为 match_parent,并将 ScrollView 高度更改为 match_parent。并将 ScrollView 放在 BottomNavigationView 的上方。希望它会起作用。