[android-developers] Re: TextView with links gets black while scrolling?
I had this problem as well, but it went away after a while. Unfortunately, I can't remember what I did to make it go away. My xml layout for it is nothing special, it's also wrapped in a ScrollView, but I am using the linkify.addLinks(Spannable, int) method rather then the xml attribute for autolink (which never worked for me anyway). On Jan 14, 1:19 pm, Peli peli0...@googlemail.com wrote: It seems if a text view contains links, and the part of the text without links is clicked for the purpose of scrolling, then the text gets black while the item is being touched. This does not happen for TextViews that do not contain a link. Is this intended behavior? (e.g. make the links stand out more if you click on an unlinkified text). Or is this some unwanted side-effect of some cache optimization (similar to what is explained here:http://android-developers.blogspot.com/2009/01/why-is-my-list-black-a... )? Here is a layout fragment: If the license text contains links, then the text without links gets black during scrolling, or actually as soon as it is being touched. ScrollView android:id=@+id/sv_license android:layout_width=fill_parent android:layout_height=fill_parent android:padding=5dip android:fadingEdge=vertical TextView android:id=@+id/et_license android:textAppearance=?android:attr/ textAppearanceSmall android:layout_width=fill_parent android:layout_height=wrap_content android:autoLink=web|email|map android:paddingBottom=20dip /TextView /ScrollView Any insight would be appreciated. Can we circumvent this behavior by applying a custom Theme? If yes, which element would have to be changed? Peli --~--~-~--~~~---~--~~ 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: TextView with links gets black while scrolling?
http://www.curious-creature.org/2008/12/22/why-is-my-list-black-an-android-optimization/ Al. Al wrote: I had this problem as well, but it went away after a while. Unfortunately, I can't remember what I did to make it go away. My xml layout for it is nothing special, it's also wrapped in a ScrollView, but I am using the linkify.addLinks(Spannable, int) method rather then the xml attribute for autolink (which never worked for me anyway). On Jan 14, 1:19 pm, Peli peli0...@googlemail.com wrote: It seems if a text view contains links, and the part of the text without links is clicked for the purpose of scrolling, then the text gets black while the item is being touched. This does not happen for TextViews that do not contain a link. Is this intended behavior? (e.g. make the links stand out more if you click on an unlinkified text). Or is this some unwanted side-effect of some cache optimization (similar to what is explained here:http://android-developers.blogspot.com/2009/01/why-is-my-list-black-a... )? Here is a layout fragment: If the license text contains links, then the text without links gets black during scrolling, or actually as soon as it is being touched. ScrollView android:id=@+id/sv_license android:layout_width=fill_parent android:layout_height=fill_parent android:padding=5dip android:fadingEdge=vertical TextView android:id=@+id/et_license android:textAppearance=?android:attr/ textAppearanceSmall android:layout_width=fill_parent android:layout_height=wrap_content android:autoLink=web|email|map android:paddingBottom=20dip /TextView /ScrollView Any insight would be appreciated. Can we circumvent this behavior by applying a custom Theme? If yes, which element would have to be changed? Peli -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~-~--~~~---~--~~ 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: TextView with links gets black while scrolling?
It's the same link I had put into my original post (at least the information behind it). My problem is slightly different: I'm not worried about the background changing color (in fact, I have the default black background), but in this case the *text* changes color from the default white (or light gray) to dark, once you touch the text or scroll it, if it contains a link somewhere. My question: Is this a feature, or a bug? Peli On Jan 14, 4:41 pm, Al Sutton a...@funkyandroid.com wrote: http://www.curious-creature.org/2008/12/22/why-is-my-list-black-an-an... Al. Al wrote: I had this problem as well, but it went away after a while. Unfortunately, I can't remember what I did to make it go away. My xml layout for it is nothing special, it's also wrapped in a ScrollView, but I am using the linkify.addLinks(Spannable, int) method rather then the xml attribute for autolink (which never worked for me anyway). On Jan 14, 1:19 pm, Peli peli0...@googlemail.com wrote: It seems if a text view contains links, and the part of the text without links is clicked for the purpose of scrolling, then the text gets black while the item is being touched. This does not happen for TextViews that do not contain a link. Is this intended behavior? (e.g. make the links stand out more if you click on an unlinkified text). Or is this some unwanted side-effect of some cache optimization (similar to what is explained here:http://android-developers.blogspot.com/2009/01/why-is-my-list-black-a... )? Here is a layout fragment: If the license text contains links, then the text without links gets black during scrolling, or actually as soon as it is being touched. ScrollView android:id=@+id/sv_license android:layout_width=fill_parent android:layout_height=fill_parent android:padding=5dip android:fadingEdge=vertical TextView android:id=@+id/et_license android:textAppearance=?android:attr/ textAppearanceSmall android:layout_width=fill_parent android:layout_height=wrap_content android:autoLink=web|email|map android:paddingBottom=20dip /TextView /ScrollView Any insight would be appreciated. Can we circumvent this behavior by applying a custom Theme? If yes, which element would have to be changed? Peli -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~-~--~~~---~--~~ 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: TextView with links gets black while scrolling?
All you need to do to resolve this is make sure you set android:textColor to something like android:textColor=?android:attr/ textColorPrimary and that will take care of your problem! On Jan 14, 11:06 am, Peli peli0...@googlemail.com wrote: It's the same link I had put into my original post (at least the information behind it). My problem is slightly different: I'm not worried about the background changing color (in fact, I have the default black background), but in this case the *text* changes color from the default white (or light gray) to dark, once you touch the text or scroll it, if it contains a link somewhere. My question: Is this a feature, or a bug? Peli On Jan 14, 4:41 pm, Al Sutton a...@funkyandroid.com wrote: http://www.curious-creature.org/2008/12/22/why-is-my-list-black-an-an... Al. Al wrote: I had this problem as well, but it went away after a while. Unfortunately, I can't remember what I did to make it go away. My xml layout for it is nothing special, it's also wrapped in a ScrollView, but I am using the linkify.addLinks(Spannable, int) method rather then the xml attribute for autolink (which never worked for me anyway). On Jan 14, 1:19 pm, Peli peli0...@googlemail.com wrote: It seems if a text view contains links, and the part of the text without links is clicked for the purpose of scrolling, then the text gets black while the item is being touched. This does not happen for TextViews that do not contain a link. Is this intended behavior? (e.g. make the links stand out more if you click on an unlinkified text). Or is this some unwanted side-effect of some cache optimization (similar to what is explained here:http://android-developers.blogspot.com/2009/01/why-is-my-list-black-a... )? Here is a layout fragment: If the license text contains links, then the text without links gets black during scrolling, or actually as soon as it is being touched. ScrollView android:id=@+id/sv_license android:layout_width=fill_parent android:layout_height=fill_parent android:padding=5dip android:fadingEdge=vertical TextView android:id=@+id/et_license android:textAppearance=?android:attr/ textAppearanceSmall android:layout_width=fill_parent android:layout_height=wrap_content android:autoLink=web|email|map android:paddingBottom=20dip /TextView /ScrollView Any insight would be appreciated. Can we circumvent this behavior by applying a custom Theme? If yes, which element would have to be changed? Peli -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~-~--~~~---~--~~ 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: TextView with links gets black while scrolling?
Unfortunatley, this does not resolve the issue. Actually, testing it more, it has nothing to do with the scroll view. It is enough to have a TextView with android:autoLink=all to trigger this behavior. I wonder if there is any text attribute or style while_clicked or similar that one could over-ride manually? Peli On 14 Jan., 17:09, Torgny torgny.bj...@gmail.com wrote: All you need to do to resolve this is make sure you set android:textColor to something like android:textColor=?android:attr/ textColorPrimary and that will take care of your problem! On Jan 14, 11:06 am, Peli peli0...@googlemail.com wrote: It's the same link I had put into my original post (at least the information behind it). My problem is slightly different: I'm not worried about the background changing color (in fact, I have the default black background), but in this case the *text* changes color from the default white (or light gray) to dark, once you touch the text or scroll it, if it contains a link somewhere. My question: Is this a feature, or a bug? Peli On Jan 14, 4:41 pm, Al Sutton a...@funkyandroid.com wrote: http://www.curious-creature.org/2008/12/22/why-is-my-list-black-an-an... Al. Al wrote: I had this problem as well, but it went away after a while. Unfortunately, I can't remember what I did to make it go away. My xml layout for it is nothing special, it's also wrapped in a ScrollView, but I am using the linkify.addLinks(Spannable, int) method rather then the xml attribute for autolink (which never worked for me anyway). On Jan 14, 1:19 pm, Peli peli0...@googlemail.com wrote: It seems if a text view contains links, and the part of the text without links is clicked for the purpose of scrolling, then the text gets black while the item is being touched. This does not happen for TextViews that do not contain a link. Is this intended behavior? (e.g. make the links stand out more if you click on an unlinkified text). Or is this some unwanted side-effect of some cache optimization (similar to what is explained here:http://android-developers.blogspot.com/2009/01/why-is-my-list-black-a... )? Here is a layout fragment: If the license text contains links, then the text without links gets black during scrolling, or actually as soon as it is being touched. ScrollView android:id=@+id/sv_license android:layout_width=fill_parent android:layout_height=fill_parent android:padding=5dip android:fadingEdge=vertical TextView android:id=@+id/et_license android:textAppearance=?android:attr/ textAppearanceSmall android:layout_width=fill_parent android:layout_height=wrap_content android:autoLink=web|email|map android:paddingBottom=20dip /TextView /ScrollView Any insight would be appreciated. Can we circumvent this behavior by applying a custom Theme? If yes, which element would have to be changed? Peli -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~-~--~~~---~--~~ 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: TextView with links gets black while scrolling?
Actually, android:textColor=?android:attr/textColorPrimary does not work (same behavior), but android:textColor=# works :-) There must be some text color set wrongly way down in the hierarchy of stateful text colors, but I could not figure out where exactly. Peli On 14 Jan., 22:22, Peli peli0...@googlemail.com wrote: Unfortunatley, this does not resolve the issue. Actually, testing it more, it has nothing to do with the scroll view. It is enough to have a TextView with android:autoLink=all to trigger this behavior. I wonder if there is any text attribute or style while_clicked or similar that one could over-ride manually? Peli On 14 Jan., 17:09, Torgny torgny.bj...@gmail.com wrote: All you need to do to resolve this is make sure you set android:textColor to something like android:textColor=?android:attr/ textColorPrimary and that will take care of your problem! On Jan 14, 11:06 am, Peli peli0...@googlemail.com wrote: It's the same link I had put into my original post (at least the information behind it). My problem is slightly different: I'm not worried about the background changing color (in fact, I have the default black background), but in this case the *text* changes color from the default white (or light gray) to dark, once you touch the text or scroll it, if it contains a link somewhere. My question: Is this a feature, or a bug? Peli On Jan 14, 4:41 pm, Al Sutton a...@funkyandroid.com wrote: http://www.curious-creature.org/2008/12/22/why-is-my-list-black-an-an... Al. Al wrote: I had this problem as well, but it went away after a while. Unfortunately, I can't remember what I did to make it go away. My xml layout for it is nothing special, it's also wrapped in a ScrollView, but I am using the linkify.addLinks(Spannable, int) method rather then the xml attribute for autolink (which never worked for me anyway). On Jan 14, 1:19 pm, Peli peli0...@googlemail.com wrote: It seems if a text view contains links, and the part of the text without links is clicked for the purpose of scrolling, then the text gets black while the item is being touched. This does not happen for TextViews that do not contain a link. Is this intended behavior? (e.g. make the links stand out more if you click on an unlinkified text). Or is this some unwanted side-effect of some cache optimization (similar to what is explained here:http://android-developers.blogspot.com/2009/01/why-is-my-list-black-a... )? Here is a layout fragment: If the license text contains links, then the text without links gets black during scrolling, or actually as soon as it is being touched. ScrollView android:id=@+id/sv_license android:layout_width=fill_parent android:layout_height=fill_parent android:padding=5dip android:fadingEdge=vertical TextView android:id=@+id/et_license android:textAppearance=?android:attr/ textAppearanceSmall android:layout_width=fill_parent android:layout_height=wrap_content android:autoLink=web|email|map android:paddingBottom=20dip /TextView /ScrollView Any insight would be appreciated. Can we circumvent this behavior by applying a custom Theme? If yes, which element would have to be changed? Peli -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~-~--~~~---~--~~ 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: TextView with links gets black while scrolling?
Have you tried setting the appearance to one of the defaults, that particular setting might be there? On Jan 14, 2009 5:10 PM, Peli peli0...@googlemail.com wrote: Actually, android:textColor=?android:attr/textColorPrimary does not work (same behavior), but android:textColor=# works :-) There must be some text color set wrongly way down in the hierarchy of stateful text colors, but I could not figure out where exactly. Peli On 14 Jan., 22:22, Peli peli0...@googlemail.com wrote: Unfortunatley, this does not resolve the... --~--~-~--~~~---~--~~ 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: TextView with links gets black while scrolling?
There is a cache attribute that can cause this too. (It bit me on the device, but not the emulator.) textCacheColor? Something like that, haven't got it available right now (its on the mbp apple is busy abusing) On Wed, Jan 14, 2009 at 5:13 PM, Torgny Bjers torgny.bj...@gmail.comwrote: Have you tried setting the appearance to one of the defaults, that particular setting might be there? On Jan 14, 2009 5:10 PM, Peli peli0...@googlemail.com wrote: Actually, android:textColor=?android:attr/textColorPrimary does not work (same behavior), but android:textColor=# works :-) There must be some text color set wrongly way down in the hierarchy of stateful text colors, but I could not figure out where exactly. Peli On 14 Jan., 22:22, Peli peli0...@googlemail.com wrote: Unfortunatley, this does not resolve the... --~--~-~--~~~---~--~~ 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: TextView with links gets black while scrolling?
I've tried with and without android:textAppearance=?android:attr/textAppearanceSmall and it did not make any difference... Peli On 14 Jan., 23:13, Torgny Bjers torgny.bj...@gmail.com wrote: Have you tried setting the appearance to one of the defaults, that particular setting might be there? On Jan 14, 2009 5:10 PM, Peli peli0...@googlemail.com wrote: Actually, android:textColor=?android:attr/textColorPrimary does not work (same behavior), but android:textColor=# works :-) There must be some text color set wrongly way down in the hierarchy of stateful text colors, but I could not figure out where exactly. Peli On 14 Jan., 22:22, Peli peli0...@googlemail.com wrote: Unfortunatley, this does not resolve the... --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---