android - 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.
解决方案
好吧,我认为不知何故 android studio 并没有自动检测这些属性。
所以,幸运的是,我尝试从材料设计网站(https://material.io/develop/android/components/bottom-sheet-behavior/)复制粘贴这些属性,这似乎工作得很好。
希望这也适用于你。
推荐阅读
- sharepoint - 随机化问题和存储以供以后检索
- python-3.x - pip 在特定的 python 环境中被杀死
- kubernetes - 如何在 kubernetes 中注册现有的 gitlab runner
- java - 仅显示 Firebase 数据库节点中的某些项目
- php - 用于更新 MS SQLSRV 中的记录的 PHP 表单
- python - 如何使用套接字将子进程直接连接到端口?
- c# - 如何将主类中的对象调用到另一个 C#
- arrays - 如何将 img 添加为触摸友好轮播组件的动态数据
- msbuild - 如何减少 MSBuild 的整体构建时间
- vba - 如何根据 Outlook 项目的文件夹采取不同的操作?