[android-developers] Re: how to implement scrolling text?

2009-03-19 Thread FBear
I implemented a scrollable TextView, named ScrollTextView before Android 1.1R1 with the marquee feature for TextView. It used android.widget.Scroller and attached TextPaint. Here's the source code: http://bear-polka.blogspot.com/2009/01/scrolltextview-scrolling-textview-for.html It's glad to see

[android-developers] Re: how to implement scrolling text?

2009-03-19 Thread Romain Guy
The TextView doesn't have to be focused. You can also use setSelected(true). -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums,

[android-developers] Re: how to implement scrolling text?

2009-03-19 Thread FBear
Set the focus on the buttons to make them scrolling. not selecting the text, but use the UP and Down navigator button of the simulator to change the focus ... On 3月10日, 下午1时55分, soniya soniy...@gmail.com wrote: I am talking about this API Demo: API Demos - Text - Marquee I tried selecting the

[android-developers] Re: how to implement scrolling text?

2009-03-09 Thread soniya
I am talking about this API Demo: API Demos - Text - Marquee I tried selecting the textbut it does not move...not even a millimeter :( Am I missing something?? On Mar 4, 9:28 pm, Romain Guy romain...@google.com wrote: The marquee starts when a TextView gets focused/selected. It is used

[android-developers] Re: how to implement scrolling text?

2009-03-04 Thread soniya
I have downloaded the latest SDK i.e. Android 1.1 but I am not able to run the API demo for Marquee. It does not work The text remain static. Do I need to do any setting or something to view that? On Jan 31, 1:51 am, Romain Guy romain...@google.com wrote: Note that cupcake will have

[android-developers] Re: how to implement scrolling text?

2009-03-04 Thread Romain Guy
The marquee starts when a TextView gets focused/selected. It is used throughout the UI in 1.1, for instance in the list of all apps in Home. On Tue, Mar 3, 2009 at 11:00 PM, soniya soniy...@gmail.com wrote: I have downloaded the latest SDK i.e. Android 1.1 but I am not able to run the API

[android-developers] Re: how to implement scrolling text?

2009-01-30 Thread Ward Willats
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

[android-developers] Re: how to implement scrolling text?

2009-01-30 Thread Noonien Soong
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

[android-developers] Re: how to implement scrolling text?

2009-01-30 Thread Romain Guy
Note that cupcake will have the marquee feature on TextView. On Fri, Jan 30, 2009 at 12:31 PM, Zach Hobbs ho...@helloandroid.com wrote: You can create a custom singleLine TextView and animate it by creating a loop and calling scrollBy(x,y) incrementing/decrementing the x value. -Zach