android底部栏不动,android – 修正底部栏在CoordinatorLayout

我有一个CoordinatorLayout其中包含AppBarLayout和一个FrameLayout包含片段。

其中一个片段包含一个TabLayout在顶部,一个列表槽RecyclerView和在底部一个“自制”工具栏。

AppBarLayout配置有应用程序:layout_scrollFlags =“scroll | enterAlways”

我的问题是,两个“工具栏”隐藏时滚动,AppBarLayout和我的“自制”工具栏底部。这是当前的行为

1355ca7030b1f23f05e64279b910e271.gif

我想修复底部的“自制”工具栏保持可见,但我不能实现它。

这是片段布局的XML

xmlns:app="http://schemas.android.com/apk/res-auto"

android:layout_width="match_parent"

android:layout_height="match_parent"

android:orientation="vertical"

>

android:id="@+id/toolbarfilter"

android:layout_width="match_parent"

android:background="@color/azul_asde"

app:tabMode="fixed"

app:tabMaxWidth="0dp"

android:elevation="4dp"

app:tabIndicatorColor="@color/verde_pastel"

android:layout_height="wrap_content"

/>

xmlns:android="http://schemas.android.com/apk/res/android"

android:id="@+id/swipeContainer"

android:layout_width="match_parent"

android:layout_height="0dp"

android:layout_weight="1">

android:id="@+id/list"

android:layout_width="match_parent"

android:layout_height="match_parent"/>

android:id="@+id/toolbarselection"

android:layout_width="match_parent"

android:layout_height="wrap_content"

android:orientation="horizontal"

android:paddingTop="10dp"

android:paddingBottom="10dp"

android:background="@color/azul_asde"

android:elevation="4dp"

android:visibility="visible"

>

android:id="@+id/delete"

android:layout_width="0dp"

android:layout_height="wrap_content"

android:layout_weight="1"

android:src="@drawable/ic_delete_white_24dp"

android:tint="@color/gris_desactivado" />

android:id="@+id/select"

android:layout_width="0dp"

android:layout_height="wrap_content"

android:layout_weight="1"

android:src="@drawable/ic_bookmark_border_white_24dp"/>

android:id="@+id/send"

android:layout_width="0dp"

android:layout_height="wrap_content"

android:layout_weight="1"

android:src="@drawable/ic_send_white_24dp"

android:tint="@color/gris_desactivado" />

EDIT1:THIS问题似乎是同样的问题。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值