当前位置:网站首页>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)
- ES6语法总结--下篇(进阶篇 ES6~ES11)
- Priority inversion and deadlock
- ESP8266使用arduino连接阿里云物联网
- 互联网协议详解
- Reno7 60W super flash charging architecture
- Programmers can make mistakes. Basic pointers and arrays of C language
- List and set
- ES6 grammar summary -- Part 2 (advanced part es6~es11)
- Kaggle竞赛-Two Sigma Connect: Rental Listing Inquiries
猜你喜欢
Machine learning -- linear regression (sklearn)
Kconfig Kbuild
機器學習--線性回歸(sklearn)
JS 函数提升和var变量的声明提升
Feature of sklearn_ extraction. text. CountVectorizer / TfidVectorizer
sklearn之feature_extraction.text.CountVectorizer / TfidVectorizer
Missing value filling in data analysis (focus on multiple interpolation method, miseforest)
ESP8266使用arduino连接阿里云物联网
Pytorch four commonly used optimizer tests
Navigator object (determine browser type)
随机推荐
JS 函数提升和var变量的声明提升
电商数据分析--用户行为分析
FTP file upload file implementation, regularly scan folders to upload files in the specified format to the server, C language to realize FTP file upload details and code case implementation
几个关于指针的声明【C语言】
Arduino JSON data information parsing
Correspondence between STM32 model and contex M
The first simple case of GNN: Cora classification
Gallery之图片浏览、组件学习
Vert. x: A simple TCP client and server demo
ARM PC=PC+8 最便于理解的阐述
MySQL START SLAVE Syntax
Feature of sklearn_ extraction. text. CountVectorizer / TfidVectorizer
Raspberry pie tap switch button to use
Pytorch实现简单线性回归Demo
互聯網協議詳解
Esp8266 connects to bafayun (TCP maker cloud) through Arduino IED
ES6语法总结--下篇(进阶篇 ES6~ES11)
Common properties of location
XML file explanation: what is XML, XML configuration file, XML data file, XML file parsing tutorial
Amba, ahb, APB, Axi Understanding