VisibilityAwareImageButton.setVisibility can only be called from within the same library group (grou

简介: VisibilityAwareImageButton.setVisibility can only be called from within the same library group (grou
VisibilityAwareImageButton.setVisibility can only be called from within the same library group (groupId=com.android.support)


FloatingActionButton在setVisibility的时候会有以上异常

fab.setVisibility(View.VISIBLE);
fab.setVisibility(View.GONE);



代替方法:

fab.show();
fab.hide();
目录
打赏
0
0
0
0
1254
分享
相关文章
在 Compose 中使用 Jetpack 组件库
在 Compose 中使用 Jetpack 组件库
742 0
【小程序】报错:no such file or directory, access ‘wxfile://usr/miniprogramLog/log2‘
【小程序】报错:no such file or directory, access ‘wxfile://usr/miniprogramLog/log2‘
2058 0
【微信小程序】TypeError: Cannot read property ‘get‘ of undefined & Error: MiniProgramError
【微信小程序】TypeError: Cannot read property ‘get‘ of undefined & Error: MiniProgramError
|
7月前
|
Flutter 解决宽度或高度不足而导致的屏幕溢出显示问题
Flutter 解决宽度或高度不足而导致的屏幕溢出显示问题
632 1
Cursor免费 GPT-4 IDE 工具的保姆级使用教程
本文介绍了Cursor这一基于人工智能技术的代码生成工具,包括其特点(利用自然语言处理和深度学习算法,可生成高质量代码,支持多种编程语言,能在多种操作系统上运行)及使用教程。教程内容涵盖下载(通过官网获取对应系统版本并安装)、初始化配置(如配置快捷键、AI指定语言,导入VS Code扩展,设置数据偏好,登录/注册)、安装插件(设置Cursor中文、配置gitee)、配置模型和Key(选择模型、配置密钥、自定义模型并进行测试)以及如何使用(打开提示词面板)等步骤。
9767 6
 Cursor免费 GPT-4 IDE 工具的保姆级使用教程
引入echarts时报错 “TypeError: Cannot read properties of undefined (reading ‘init‘)“的解决方案
引入echarts时报错 “TypeError: Cannot read properties of undefined (reading ‘init‘)“的解决方案
890 0
引入echarts时报错 “TypeError: Cannot read properties of undefined (reading ‘init‘)“的解决方案
uniapp常用提示框uni.showToast(OBJECT)
uniapp常用提示框uni.showToast(OBJECT)
354 0
微信小程序web-view嵌入uni-app H5页面,通过H5页面传参给小程序进行转发分享页面,并通过点击转发出来的卡片,定向打开对应H5路径
微信小程序web-view嵌入uni-app H5页面,通过H5页面传参给小程序进行转发分享页面,并通过点击转发出来的卡片,定向打开对应H5路径
Android开源系列-组件化框架Arouter-(一)使用方式详解
最近组里需要进行**组件化框架**的改造,用到了`Arouter`这个开源框架,为了更好的对项目进行改造,笔者花了一些时间去了解了下`Arouter
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等