android error java.lang.StackOverflowError, radioButton

       I wrote an xml page today and actually reported such an error, which made me think that my thread did not stop. Later, I found out that it was a control I wrote, RadioButton set a dynamic background, the picture name referenced in the Selector file for setting the dynamic background was wrongly written, and the error disappeared when the picture name was written correctly. .

The radio_right file is referenced here. The name of radio_right in @drawable is wrong, this image does not exist.

After correction

Another mistake: After the selector is written, the first switching effect will take effect when you click it, but it will not take effect when you click it back. The solution is to add an id to each of the two radioButtons, and the switching will take effect all the time.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325828532&siteId=291194637