I have added the code in strings.xml like
<string name="terms_agree_text">By Logging in, you are agreeing to our <u>terms and condition</u> and <u>privacy policy</u></string>
also I have added the same String in bhahasa language like this
<string name="terms_agree_text">Dengan masuk, Anda menyatakan bahwa Anda telah menyetujui <u>syarat dan ketentuan</u> dan <u>kebijakan privasi</u> kami</string>
then I have set the label like this
mBinding.termsAndCondition.setText(Html.fromHtml(getString(R.string.terms_agree_text)));
Here I have to do the clickable event for this 2underline text. But, I tried to use the
sp.setSpan(click, startIndex, endIndex, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
But this string index is wrong for the other locale. So Currently I have added View to clickable in the text.
So can you please advise to do this. Thanks