How to make a text scroll automatically

by learner » Fri, 16 May 2008 05:35:05 GMT


Sponsored Links
 Hi All,

How can i make a text to scroll automatically inside a text view when
an event accurs.

Please help me otu

Thanks in advance
Learner
Desire to learn
--~--~---------~--~----~------------~-------~--~----~



How to make a text scroll automatically

by Mark Murphy » Fri, 16 May 2008 12:23:39 GMT


 


View#scrollBy() will let you tell the TextView to scroll a certain distance.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com 
The Busy Coder's Guide to Android Development -- coming in June 2008!

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Cannot run Android emulator on Linux

Hi,

I downloaded the the entire SDK for my ubuntu machine. Then I went to
tools directory and ran ./emulator which opened the emulator
correctly.

However, I did the same thing on my 64 bit Arch Linux computer, but
when I use ./emulator, it tells me such file or directory doesn't
exist.

Note that, I have uninstalled openjdk6 from my computer and installed
Sun JDK, but still not able to get the emulator running.

My ubuntu laptop is a slow computer and if I run eclipse, it gets even
slower. That is, it's very annoying to do my coding on it.

Anyone had such problem before?

Thanks in advance.

--~--~---------~--~----~------------~-------~--~----~

2. VerifyError attempting to use commons-digester

Hi,

I'm trying to write a simple web service client app for Android, and
I'd like to use commons-digester to convert the service's XML
responses into objects I can work with.  However, I'm getting a
VerifyError as soon as I try to invoke any Digester method.

I've set up my dependencies (external jars) using Maven (the Masa
Android plugin for Maven, and the Maven Plugin for Eclipse).  The Masa
plugin seems a little bit bleeding edge, so that may somehow be the
source of the problem, but I can't be sure.

How can I debug this issue further, and what, if anything, can I do to
resolve it?  Is it not possible to use a library as simple as Digester
on the Android platform?

I'd appreciate any advice or suggestions on working through this
issue.  Thanks.

Here is my complete error output:
03-16 04:47:44.411: WARN/dalvikvm(628): VFY: unable to resolve virtual
method 140: Lorg/apache/commons/digester/Digester;.setValidating (Z)V
03-16 04:47:44.421: WARN/dalvikvm(628): VFY:  rejecting opcode 0x6e at
0x000e
03-16 04:47:44.421: WARN/dalvikvm(628): VFY:  rejected Lcom/
playfoursquare/android/CheckinsApi;.<init> (Ljava/lang/String;)V
03-16 04:47:44.421: WARN/dalvikvm(628): Verifier rejected class Lcom/
playfoursquare/android/CheckinsApi;
03-16 04:47:44.431: DEBUG/AndroidRuntime(628): Shutting down VM
03-16 04:47:44.431: WARN/dalvikvm(628): threadid=3: thread exiting
with uncaught exception (group=0x40010e28)
03-16 04:47:44.431: ERROR/AndroidRuntime(628): Uncaught handler:
thread main exiting due to uncaught exception
03-16 04:47:44.451: ERROR/AndroidRuntime(628): java.lang.VerifyError:
com.playfoursquare.android.CheckinsApi
03-16 04:47:44.451: ERROR/AndroidRuntime(628):     at
com.playfoursquare.android.FourSquare.onCreate(FourSquare.java:33)
03-16 04:47:44.451: ERROR/AndroidRuntime(628):     at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1122)
03-16 04:47:44.451: ERROR/AndroidRuntime(628):     at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2103)
03-16 04:47:44.451: ERROR/AndroidRuntime(628):     at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2156)
03-16 04:47:44.451: ERROR/AndroidRuntime(628):     at
android.app.ActivityThread.access$1800(ActivityThread.java:112)
03-16 04:47:44.451: ERROR/AndroidRuntime(628):     at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1580)
03-16 04:47:44.451: ERROR/AndroidRuntime(628):     at
android.os.Handler.dispatchMessage(Handler.java:88)
03-16 04:47:44.451: ERROR/AndroidRuntime(628):     at
android.os.Looper.loop(Looper.java:123)
03-16 04:47:44.451: ERROR/AndroidRuntime(628):     at
android.app.ActivityThread.main(ActivityThread.java:3742)
03-16 04:47:44.451: ERROR/AndroidRuntime(628):     at
java.lang.reflect.Method.invokeNative(Native Method)
03-16 04:47:44.451: ERROR/AndroidRuntime(628):     at
java.lang.reflect.Method.invoke(Method.java:515)
03-16 04:47:44.451: ERROR/AndroidRuntime(628):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:739)
03-16 04:47:44.451: ERROR/AndroidRuntime(628):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
03-16 04:47:44.451: ERROR/AndroidRuntime(628):     at
dalvik.system.NativeStart.main(Native Method)

  -micah

--~--~---------~--~----~------------~-------~--~----~

3. SimpleDateFormat PathClassLoader NullPointerException quandary

4. Problem creating new app

5. Any way to use getChildDrawingOrder? where do we set FLAG_USE_CHILD_DRAWING_ORDER?

6. Any way to use getChildDrawingOrder? where do we set FLAG_USE_CHILD_DRAWING_ORDER?

7. Button with both Text and Image