当前位置:网站首页>Custom view puzzle getcolor r.color The color obtained by colorprimary is incorrect
Custom view puzzle getcolor r.color The color obtained by colorprimary is incorrect
2022-07-06 12:09:00 【ScottePerk】
In the custom View When , You can get... Through the following code colorPrimary The color of the . But the obtained color seems to be different .
mPrimaryColor=ContextCompat.getColor(getContext(),R.color.colorPrimary);
For example, below :
This is a custom circular progress bar , The color of the bottom ring and ToolBar The color looks different to the naked eye . But the colors I set are colorPrimary, And I haven't customized this color .
in fact , The color of these two places is the same , It looks different just because of illusion .
It looks different just because of illusion !!!
It looks different just because of illusion !!!
If you use a color picker to get the colors of these two places , You will find that the color is the same !!! The angle you see , Color next to color , Will give the human eye an illusion .
边栏推荐
- 数据分析之缺失值填充(重点讲解多重插值法Miceforest)
- C language, log print file name, function name, line number, date and time
- Distribute wxWidgets application
- Pytorch four commonly used optimizer tests
- uCOS-III 的特点、任务状态、启动
- Gallery's image browsing and component learning
- Basic operations of databases and tables ----- view data tables
- open-mmlab labelImg mmdetection
- C语言回调函数【C语言】
- Keyword inline (inline function) usage analysis [C language]
猜你喜欢
随机推荐
.elf .map .list .hex文件
Several declarations about pointers [C language]
MySQL realizes read-write separation
Machine learning -- linear regression (sklearn)
arduino UNO R3的寄存器写法(1)-----引脚电平状态变化
互联网协议详解
MySQL数据库面试题
RT-Thread的main线程“卡死”的一种可能原因及解决方案
A possible cause and solution of "stuck" main thread of RT thread
Contiki源码+原理+功能+编程+移植+驱动+网络(转)
Internet protocol details
机器学习--决策树(sklearn)
Selective sorting and bubble sorting [C language]
ES6语法总结--上篇(基础篇)
Pytoch implements simple linear regression demo
Bubble sort [C language]
R & D thinking 01 ----- classic of embedded intelligent product development process
B tree and b+ tree of MySQL index implementation
Linux Yum install MySQL
物联网系统框架学习



![[esp32 learning-2] esp32 address mapping](/img/ee/c4aa0f7aed7543bb6807d7fd852c88.png)
![Several declarations about pointers [C language]](/img/9b/ace0abbd1956123a945a98680b1e86.png)



