Just use android:requiresFadingEdge instead of hacking into the
framework... Note that fading edges may be very costly when hardware
rendering is enabled.
On May 3, 2012 2:36 AM, "Martin Brabham" <[email protected]>
wrote:
> Yuvi,
> I was wondering if you ever found a solution to this issue. Also do
> you have an example of how you were able to get this to work in the
> activities? I have tried overriding the value with reflection, and I still
> have the same issue.
>
> On Tuesday, December 20, 2011 2:45:16 AM UTC-8, Yuvi wrote:
>>
>> Hey there,
>>
>> I found something strange about ellipsize="marquee" on my Galaxy
>> Nexus...or better...it doesn't work. Instead of seeing nice fading edges at
>> the end of the word (when the word doesn't fit the view of course), you get
>> the normal dots ("...").
>> After some digging through the ICS source code I found, in the
>> ViewConfiguration class, this (which enables/disables the fading edge for
>> marquee):
>>
>> mFadingMarqueeEnabled = res.getBoolean(com.android.**
>> internal.R.bool.config_ui_**enableFadingMarquee);
>>
>> For some reason on the Galaxy Nexus (Android 4.0.1) this is actually
>> "false". Do you have any idea on why is that?
>> I also tried with Android 4.0.3 on the Nexus S, with the same results.
>>
>> As a test, I tried using Reflection to force the value
>> of mFadingMarqueeEnabled to true. And while it does work in my own
>> Activities, in doesn't work on AppWidgets (and that's where I'm actually
>> using this).
>>
>> Do you know if it's actually possible somehow to change the boolean value
>> of com.android.internal.R.**bool.config_ui_**enableFadingMarquee? (I
>> believe not... :( )
>>
>> On the emulator (tested both with Android 4.0 and 4.0.3) this is actually
>> set to "true".
>>
>>
>> If you have an ICS device could you check if fading edges work for you?
>> (a quick way to check this is to place on your homescreen an app with a
>> long name - e.g. "News & Weather" - and see if it shows ".." at the end of
>> the name, or if it fades nicely).
>>
>>
>> Thank you,
>> Cheers,
>> Yuvi
>>
>>
>>
>> --
>> YuviDroid
>> Check out Launch-X <http://android.yuvalsharon.net/launchx.php> (a
>> widget to quickly access your favorite apps and contacts!)
>> http://www.droidahead.com/**apps/launchx/<http://android.yuvalsharon.net>
>>
>> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en