[android-developers] Re: edittext text with html formatting
do u guys see my email it seems like its not getting through the group On Tue, Feb 16, 2010 at 11:02 AM, social hub shubem...@gmail.com wrote: I like to place text in editext with link to say one of the apps say navigation and I also want color part of the text in blue some in white. Are there any other widgets that support part coloring of the text some text in one color and other in diff color Thanks in advance for your help -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: edittext text with html formatting
We see it. Since this is a volunteer mail list, you may not get an answer for hours or days. Chances are if the answer is plainly in the docs, no one may reply anyway... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: edittext text with html formatting
This might be what you need: http://developer.android.com/intl/de/reference/android/text/util/Linkify.html On Feb 16, 6:31 pm, Frank Weiss fewe...@gmail.com wrote: We see it. Since this is a volunteer mail list, you may not get an answer for hours or days. Chances are if the answer is plainly in the docs, no one may reply anyway... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: edittext text with html formatting
Thanks I did look at it What I like is basically as below I just finished reading book via RSS As above the first part of text is with different color and rest of the text color is in blue also via RSS is link to an internal application say RSS so in this case it will launch the intent say RSS:// is it possible to do that in Edittext. Thanks in advance for your help. Sorry if my question wasnt clear before. On Tue, Feb 16, 2010 at 12:08 PM, Diego Torres Milano dtmil...@gmail.comwrote: This might be what you need: http://developer.android.com/intl/de/reference/android/text/util/Linkify.html On Feb 16, 6:31 pm, Frank Weiss fewe...@gmail.com wrote: We see it. Since this is a volunteer mail list, you may not get an answer for hours or days. Chances are if the answer is plainly in the docs, no one may reply anyway... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: edittext text with html formatting
I did look at it What I like is basically as below I just finished reading book via RSS As above the first part of text is with different color and rest of the text color is in blue also via RSS is link to an internal application say RSS so in this case it will launch the intent say RSS:// is it possible to do that in Edittext. Thanks in advance for your help. Sorry if my question wasnt clear before. I know you can apply one color to the whole text. But I have to show different color for part of text so essentially different colors to emphasize parts of the text. and setting autolink only does phone/web/email but i need a autolink to one of the installed apps inside the device. On Tue, Feb 16, 2010 at 12:40 PM, social hub shubem...@gmail.com wrote: Thanks I did look at it What I like is basically as below I just finished reading book via RSS As above the first part of text is with different color and rest of the text color is in blue also via RSS is link to an internal application say RSS so in this case it will launch the intent say RSS:// is it possible to do that in Edittext. Thanks in advance for your help. Sorry if my question wasnt clear before. On Tue, Feb 16, 2010 at 12:08 PM, Diego Torres Milano dtmil...@gmail.comwrote: This might be what you need: http://developer.android.com/intl/de/reference/android/text/util/Linkify.html On Feb 16, 6:31 pm, Frank Weiss fewe...@gmail.com wrote: We see it. Since this is a volunteer mail list, you may not get an answer for hours or days. Chances are if the answer is plainly in the docs, no one may reply anyway... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: edittext text with html formatting
For those of us who are looking for a solutiion. c is the context EditText et=new EditText(c); et.setId(2); et.setLayoutParams(new LayoutParams(300,LayoutParams.WRAP_CONTENT)); //et.setEnabled(false); et.setFocusable(false); et.setMaxHeight(100); et.setClickable(true); et.setPadding(5, 5, 5, 5); et.setText(I just finished reading Michale Circhton novel+ The Time and I highly recommend this book to everyone and+ you can find a copy in our library); //et.setTextColor(11000); //et.setTextColor(new ColorStateList(states., colors)) et.setTextColor(cl); et.setMovementMethod(LinkMovementMethod.getInstance()); Spannable str = et.getText(); // Create our span sections, and assign a format to each. str.setSpan(new StyleSpan(android.graphics.Typeface.BOLD_ITALIC), 0, 7, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); str.setSpan(new BackgroundColorSpan(0xFF00), 8, 19, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); str.setSpan(new ClickableSpan() { @Override public void onClick(View widget) { // TODO Auto-generated method stub //showDialog(hello); Log.v(MyService, SEN ===onClick sxcalled sdas); c.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse( http://www.facebook.com;))); } }, 21, str.length() - 1, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); On Tue, Feb 16, 2010 at 12:43 PM, social hub shubem...@gmail.com wrote: I did look at it What I like is basically as below I just finished reading book via RSS As above the first part of text is with different color and rest of the text color is in blue also via RSS is link to an internal application say RSS so in this case it will launch the intent say RSS:// is it possible to do that in Edittext. Thanks in advance for your help. Sorry if my question wasnt clear before. I know you can apply one color to the whole text. But I have to show different color for part of text so essentially different colors to emphasize parts of the text. and setting autolink only does phone/web/email but i need a autolink to one of the installed apps inside the device. On Tue, Feb 16, 2010 at 12:40 PM, social hub shubem...@gmail.com wrote: Thanks I did look at it What I like is basically as below I just finished reading book via RSS As above the first part of text is with different color and rest of the text color is in blue also via RSS is link to an internal application say RSS so in this case it will launch the intent say RSS:// is it possible to do that in Edittext. Thanks in advance for your help. Sorry if my question wasnt clear before. On Tue, Feb 16, 2010 at 12:08 PM, Diego Torres Milano dtmil...@gmail.com wrote: This might be what you need: http://developer.android.com/intl/de/reference/android/text/util/Linkify.html On Feb 16, 6:31 pm, Frank Weiss fewe...@gmail.com wrote: We see it. Since this is a volunteer mail list, you may not get an answer for hours or days. Chances are if the answer is plainly in the docs, no one may reply anyway... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en