问题
在Android的xml中添加带<<>>的字符串,会无法通过编译.
提示:Error: Error parsing XML: not well-formed (invalid token)
<TextView
android:id="@+id/tv_regist_protocol"
android:text="<<abc>>"
android:textColor="#0000FF"
android:textSize="12sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
解决
添加<![CDATA[<<abc>>]]>包裹,通过编译.