android - 以编程方式在CoordinatorLayout [Kotlin]中展开/折叠底部导航 View

标签 android kotlin android-coordinatorlayout bottomnavigationview

this question之前,setVisibility有效,但是问题是,

visibility = true, after hiding(using visibility = gone) the BottomNavigationView, shows up a blank space



空格是BNV的空间,但是由于HideViewOnScrollBehavior,所以其中的布局没有膨胀

问:如何以编程方式扩展BNV

最佳答案

尝试将可见性设置为“消失”

https://developer.android.com/reference/android/view/View#GONE

关于android - 以编程方式在CoordinatorLayout [Kotlin]中展开/折叠底部导航 View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61703207/

相关文章:

java - 错误 :0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag when importing RSA public key

android - 您如何找到未单击的单选按钮?

android - CoordinatorLayout 与 NestedScrollView 和水平滚动 RecyclerView

android - CoordinatorLayout + ActionBar + fragment

java - Android 应用内计费 : Start purchase flow when button is pressed

android - 无法对非静态方法 findviewbyid(int) TextView 进行静态引用

android - 打开/关闭 GPS 是否会广播 android.location.PROVIDERS_CHANGED 消息?

java - 如何通过子类型避免kotlin工厂类方法?

java - 如何检查 recyclerView 是否为空 Espresso

android - 与 TabLayout 和 CoordinatorLayout 一起使用时 Google map View 中的偏移量