The value of attribute “a“ associated with an element type “View“ must not contain the ‘<‘ character

   Small problem, reminder to rest

question:

The value of attribute "android:background" associated with an element type "View" must not contain the '<' character.

The value of attribute 'android:background' associated with element type 'View' cannot contain the '<' character.

Problems:

 Problem thinking:

1. The traditional upstream affects the downstream code, and the compiler interprets it as garbled code;

2. Too much reliance on the compiler, the IDE will not report an error, and the index is on the next line, which leads to reading for a long time, changing it for a long time, crying and laughing. Then it suddenly dawned on me that android:background="#EAEEF4" added a double quote here

3. During the development process, many small details are really dumbfounding. It takes time, but the problem cannot be seen.

In fact, it’s just lack of energy, working for too long, get up and walk, change your mind, take a break, or look at it on the first day , and you will laugh when you finally untie it.

Guess you like

Origin blog.csdn.net/ly_xiamu/article/details/125675910