Obsolete
Status Update
Comments
sp...@gmail.com <sp...@gmail.com> #2
Thanks for the report. This should work if you do
setMovementMethod(LinkMovementMethod.getInstance()) but you're right that it would be
good for it to work without you having to do that.
setMovementMethod(LinkMovementMethod.getInstance()) but you're right that it would be
good for it to work without you having to do that.
ad...@gmail.com <ad...@gmail.com> #3
That worked, thanks!
pi...@gmail.com <pi...@gmail.com> #4
It does not work for me!
when touched its changing color, thats it, nothing else happens.
like launching of browser. SOS!
when touched its changing color, thats it, nothing else happens.
like launching of browser. SOS!
ku...@gmail.com <ku...@gmail.com> #5
[Comment deleted]
[Deleted User] <[Deleted User]> #6
[Comment deleted]
te...@gmail.com <te...@gmail.com> #7
I've got the same problem : color changes and nothing more... :(
I've found the solution : if you use getString for string resources, do not integrate html in your xml. You have to externalize html. For example :
your xml won't contain : <string name="mystring"><a href='#'>link</a></string>
but only : <string name="mystring">link</string>
and then use it as :
textView.setText(Html.fromHtml("<a href='#'>"+getString(R.string.mystring)+"</a>"));
Enjoy :)
I've found the solution : if you use getString for string resources, do not integrate html in your xml. You have to externalize html. For example :
your xml won't contain : <string name="mystring"><a href='#'>link</a></string>
but only : <string name="mystring">link</string>
and then use it as :
textView.setText(Html.fromHtml("<a href='#'>"+getString(R.string.mystring)+"</a>"));
Enjoy :)
en...@google.com <en...@google.com>
ia...@gmail.com <ia...@gmail.com> #8
I am facing problem in formating and setting text view in android if any special character comes(starting Html tags like < and </) during Html formatting
TextView tv;
String subject = "My heart <3 is paining and breaking </3 after this";
tv.setText(Html.fromHtml("<b>"+subject+"</b>");
in this case string automatically truncate after < or </ .
Please go through this and help me out.
TextView tv;
String subject = "My heart <3 is paining and breaking </3 after this";
tv.setText(Html.fromHtml("<b>"+subject+"</b>");
in this case string automatically truncate after < or </ .
Please go through this and help me out.
ja...@gmail.com <ja...@gmail.com> #9
I am facing problem in formating and setting text view in android if any special character comes(starting Html tags like < and </) during Html formatting
TextView tv;
String subject = "My heart <3 is paining and breaking </3 after this";
tv.setText(Html.fromHtml("<b>"+subject+"</b>");
in this case string automatically truncate after < or </ .
Please go through this and help me out.
TextView tv;
String subject = "My heart <3 is paining and breaking </3 after this";
tv.setText(Html.fromHtml("<b>"+subject+"</b>");
in this case string automatically truncate after < or </ .
Please go through this and help me out.
ch...@orr.me.uk <ch...@orr.me.uk> #10
If you externalize your string, use the CDATA notation if you want the links to work. For example:
<string
name="signup_fine_print"><![CDATA[Foo bar bar\'s
<a href="http://www.foo.com/about/tos ">Terms of Service</a>]]>
</string>
<string
name="signup_fine_print"><![CDATA[Foo bar bar\'s
<a href="
</string>
tr...@gmail.com <tr...@gmail.com> #11
Can we implement multiple link on TextView any how?
Description
Steps to Reproduce:
1. Add android:windowSoftInputMode="stateAlwaysHidden" to an activity
containing an EditText widget
2. Tap on the EditText widget while in a mode sans hardware keyboard
Expected Behavior: nothing ("The soft keyboard is always hidden when the
activity's main window has input focus.")
Actual Behavior: soft keyboard appears