floating-action-button - 浮动操作按钮中的颜色矢量资源问题
问题描述
所以,伙计们。
我创建了一个资产向量以在我的 Fluting 操作按钮(资产添加或加号)中使用,颜色为白色。当我将它添加到 FAB 时,它会变成黑色,我无法更改它。
我可以在哪里进行更改?
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="@dimen/fab_margin"
app:fabSize="normal"
app:rippleColor="@color/white"
app:srcCompat="@drawable/ic_confirmar_24"
/>
解决方案
推荐阅读
- django-views - 无法使用 TestCase 库对 Django APIviews 进行单元测试?
- scala - 如何在 Scala 中创建文件输入流以从 URL 下载视频?
- c++ - 'Microsoft::WRL::FtmBase' 类具有虚函数,但析构函数不是虚函数
- build - Xcode 9.4.1 无法构建模块并重新定义模块 - 无法构建
- spring-boot - 使用 spring 和 querydsl 排序
- java - 运行一次迭代后,循环移动到代码中的错误位置
- python - 使用 hover_line_alpha 时散景线“消失”
- r - 使用 enquo 时如何测试变量类型?
- python - TensorFlow 通过 input_fn 管道输入多个参数
- json - 在 Postgres 中查询 JSON 对象数组