Color card use
Recycle and view the knowledge points used:
This is because the height of itemview is used when drawing the color card. Because it is invisible, the height is 0, so when drawing a color, draw a color with a height of 0.
This is because the white circle of the last contact color was not removed in time.
Simply put, it still takes a lot of time to troubleshoot the problem. Looking at your code over and over again, I feel that there is no problem anywhere, but there is a problem when it runs;
Then I have been in the log, guessing where there is a problem, probably knowing where there is a problem, but I can't guess where there is a problem;
Stick to the record, eliminate the problems here, eliminate the problems there, and finally find out, write less.
When updating the color selection state, only the state of the visible control is updated, and the invisible color state data will not be changed.
The color of the button in the lower right corner is consistent with the selected color.
The sooner the suspended window is created, it will be located on the ground floor.
The last created floating window is located at the top of all floating windows.
Mobile phone: Mi 1 1 Pro
Android version: 12
Autojs version: 9. 1. 14
celebrity quote
Thinking is the most important thing, other Baidu, bing, stackoverflow, github, Android documents, autojs documents, and finally the group topic-Yashu tutorial.
statement
Part of the content comes from the network. This course is for learning only and is prohibited for other purposes.