首页 > 解决方案 > some attributes from material design missing in bottom sheets

问题描述

So i want to add Bottom Sheets in my app and looked into the material design steps for doing so but the problem is I am unable to add attributes like app:behavior_hideable , app:behavior_peekHeight, etc . I have looked in others code as well but didn't found anything solution to it.

implementation 'androidx.appcompat:appcompat:1.1.0-beta05'

implementation 'com.google.android.material:material:1.1.0-alpha07'

I have included the latest dependencies available to me at this time. Still there isn't any positive breakthrough.

标签: androidandroid-layoutmaterial-designandroid-appcompat

解决方案


好吧,我认为不知何故 android studio 并没有自动检测这些属性。

所以,幸运的是,我尝试从材料设计网站(https://material.io/develop/android/components/bottom-sheet-behavior/)复制粘贴这些属性,这似乎工作得很好。

希望这也适用于你。


推荐阅读