[mono-android] Underline text in TextView

2012-04-12 Thread DiCo
Hi,
I need  to set underline text in my TextView dynamically in activity.cs
and i don't know how to do that... 

I didn't find the exmaple for mono for android C#,
example on Java (like using SpannableString doesn't work)

Can anybody help ?

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Underline-text-in-TextView-tp5635390p5635390.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


Re: [mono-android] Underline text in TextView

2012-04-13 Thread DiCo
Jon, thanks.

You gave me idea  - and i found the way ))

Example that doesn't work in my case:

TextView textView = (TextView) view.findViewById(R.id.textview);
> SpannableString content = new SpannableString("Content");
> content.setSpan(new UnderlineSpan(), 0, content.length(), 0);
> textView.setText(content);
and


> TextView textView = (TextView) view.findViewById(R.id.textview);
> textView.setText(Html.fromHtml(getString(R.string.your_string_here)));

In my case TextView.SetText Method doesn't have any ovveride version with
ISpanned as parameter.

The only way that i found:


>  myTextView.TextFormatted = Html.FromHtml(MyString); 

where MyString is like 'Underline Text'




--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Underline-text-in-TextView-tp5635390p5637630.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid