[英]How to avoid floating action button from hiding
I have a fab anchored to collapsing toolbar and when toolbar collapses, fab automatically hides and I want it to stop hiding我有一个固定在折叠工具栏上的 fab,当工具栏折叠时,fab 会自动隐藏,我希望它停止隐藏
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_anchor="@id/app_bar"
app:layout_anchorGravity="bottom|start"/>
I just want fab's moving animation not hiding我只想要 fab 的移动动画不隐藏
I used floating navigation view library and it did the job我使用了浮动导航视图库,它完成了工作
you can avoid floating action button from hiding by setting elevation您可以通过设置高度来避免隐藏浮动操作按钮
app:elevation="6dp"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.