当前位置:网站首页>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 .
边栏推荐
猜你喜欢
E-commerce data analysis -- User Behavior Analysis
Missing value filling in data analysis (focus on multiple interpolation method, miseforest)
Kconfig Kbuild
Arm pc=pc+8 is the most understandable explanation
Comparaison des solutions pour la plate - forme mobile Qualcomm & MTK & Kirin USB 3.0
几个关于指针的声明【C语言】
5G工作原理详解(解释&图解)
机器学习--决策树(sklearn)
I2C bus timing explanation
PyTorch四种常用优化器测试
随机推荐
Esp8266 connects to bafayun (TCP maker cloud) through Arduino IED
Arduino JSON data information parsing
Arduino gets the length of the array
Reno7 60W super flash charging architecture
機器學習--線性回歸(sklearn)
Programmers can make mistakes. Basic pointers and arrays of C language
Raspberry pie tap switch button to use
vim命令行笔记
Pytoch temperature prediction
Implementation scheme of distributed transaction
Correspondence between STM32 model and contex M
ESP8266使用arduino连接阿里云物联网
AMBA、AHB、APB、AXI的理解
【ESP32学习-1】Arduino ESP32开发环境搭建
RuntimeError: cuDNN error: CUDNN_STATUS_NOT_INITIALIZED
C language callback function [C language]
OPPO VOOC快充电路和协议
Variable parameter principle of C language function: VA_ start、va_ Arg and VA_ end
优先级反转与死锁
arduino UNO R3的寄存器写法(1)-----引脚电平状态变化