android - 受暗模式android影响的色调图像视图
问题描述
我对使用 tint 的 imageview 有一点问题,我的文件的默认颜色arrow_filled
是Black,并且它不会将颜色更改为white。
<ImageView
android:layout_width="wrap_content"
android:layout_height="15dp"
android:layout_centerVertical="true"
android:layout_toRightOf="@id/ccp"
android:rotation="180"
android:src="@drawable/arrow_filled"
app:tint="@color/white" />
我使用这个主题:
<style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar.Bridge">
解决方案
推荐阅读
- java - 微服务集成测试框架
- java - 控制 setElevation 方法的出现时间
- wordpress - 如何在单击订单按钮时将 WooCommerce 订单对象传递给自定义 JS
- python - 遍历数据框以将 str 转换为日期和时间 obj
- eclipse - Spring Tool Suite - 运行配置 - JUnit - 显示命令行 - 类路径信息在哪里?
- node.js - ReactJS 中的 API 调用并设置对状态的响应
- c++ - 将二进制数据 (.tec) 读入 C++ 程序变量矩阵
- mysql - 关于Mysql文件打孔,何时以及如何报“no space left”错误?
- python - 如何从文本中提取提及特定单词和/或短语的推文?
- javascript - TypeError:stripHtml 不是函数