利用Html.fromHtml(string);其中string为html格式的文字
实例
agreement=(TextView)findViewById(R.id.TextView1);
String second = "<font color='#FF1919'>Terms of service,Privacy Policy,Guest Refund Policy </font>";
String first = "<font color='#ffffff'> By signing up,I agree to DropInn </font>";
String third = "<font color='#ffffff'>and </font>";
String fourth = "<font color='#FF1919'>Host Guaretee Terms.</font>";
agreement.setText(Html.fromHtml(first + second + third + fourth));