我有这个代码:
TextView tv1 = FindViewById<TextView>(Resource.Id.textView1);
tv1.Text = "Text";
SpannableString wordtoSpan = new SpannableString(tv1.Text);
wordtoSpan.SetSpan(new UnderlineSpan(), 0, tv1.Text.Length, 0);
tv1.SetText(wordtoSpan, TextView.BufferType.Normal);
无论我使用BufferType.Normal
还是BufferType.Spannable
,在文字下方画一条线,在文字下方出现一条线。那么BufferType.Normal
和的作用是BufferType.Spannable
什么?