Have you looked at ScrollView? Unfortunately it only supports vertical scrolling right now...
On Jan 30, 11:02 am, Ward Willats <goo...@wardco.com> wrote: > Hi Rodrigo: > > I asked this same question ages ago and never got an answer. In the > end, I concluded the built-in animation machinery cannot handle a > case where the bitmap is longer than the view. > > I wound up not using any of the built-in animation stuff and just > blitted raw bitmaps in a custom view. (Except I did have my > implementation take Interpolators and work in parametric [0, 1] time, > so at least I got free ease-in and ease-out effects.) > > I'm doing all this in the regular view hierarchy (no surface view or > anything) on the main thread. No performance problems to report at > speeds up to 20 FPS. > > -- Ward > > >HI, > > >What is the best way to implement scrolling text (with behavior > >similar to that of HTML tag 'marquee')?? > > >I've been trying to do this using TextViews + Animations but I'm > >having troubles primarily because of sizing issues. If my text is long > >enough that it exceeds the screen width, it won't be drawn completely > >(it's size will be chopped at screen width). Thus, when I animate it > >from right to left, only a part of the text will be displayed. This > >happens if I allow a maximum of 1 line in my TextView, because > >otherwise it makes the TextView have multiple lines. If I make it > >horizontally scrollable, the same 'chopped-off' behavior is seen. > > >I think this happens because the TextView's parent imposes some > >restrictions on its size. Is there a way to bypass these restrictions > >so that the TextView is 'drawn' even if parts of it will be off- > >screen? > > >If that's not possible, what's an alternative way of implementing this > >behavior? > > >Thanks! > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---