0

私はこのコードを持っています:

    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ですか?

4

1 に答える 1