Can I have a scrolling element inside another?

by Romain Guy » Mon, 17 May 2010 15:53:07 GMT


Sponsored Links
 No you can't and it's not a bug. It's on purpose because with a touch
screen nested scrollable elements can be very awkward/difficult to
use.


Don't give your EditText a limit. The whole point of putting it in a
ScrollView is that you don't have to give it a limited size. Just use
wrap_content for the height and no maxLines.

-- 
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, where I and others can see and answer them

--



Can I have a scrolling element inside another?

by mongd » Mon, 17 May 2010 15:59:44 GMT


 Thank you Romain! You saved me =D!!



>


Sponsored Links


Other Threads

1. AIDL interface and implementation in two different APK

Hello,

is it possible to declare an aidl interface and to bind to service
which implements in a APK, and to write the implementation of this
service in another APK?

My service is com.my.implementationService which extends Service.
Its inner class com.my.implementationService.MyBinder extends the
interface stub IMyInterface.Stub.

I got these errors and warnings :


07-08 14:48:48.550: WARN/dalvikvm(1047): Unable to resolve superclass
of Lcom/my/implementationService$MyBinder; (12)
07-08 14:48:48.550: WARN/dalvikvm(1047): Link of class 'Lcom/my/
implementationService$MyBinder;' failed
07-08 14:48:48.550: ERROR/dalvikvm(1047): Could not find class
'com.my.implementationService$MyBinder', referenced from method
com.my.implementationService.<init>
07-08 14:48:48.550: WARN/dalvikvm(1047): VFY: unable to resolve new-
instance 16 (Lcom/my/implementationService$MyBinder;) in Lcom/my/
implementationService;
07-08 14:48:48.550: WARN/dalvikvm(1047): VFY:  rejecting opcode 0x22
at 0x0003
07-08 14:48:48.550: WARN/dalvikvm(1047): VFY:  rejected Lcom/my/
implementationService;.<init> ()V
07-08 14:48:48.560: WARN/dalvikvm(1047): Verifier rejected class Lcom/
my/implementationService;
07-08 14:48:48.560: WARN/dalvikvm(1047): Class init failed in
newInstance call (Lcom/my/implementationService;)
07-08 14:48:48.560: DEBUG/AndroidRuntime(1047): Shutting down VM
07-08 14:48:48.560: WARN/dalvikvm(1047): threadid=3: thread exiting
with uncaught exception (group=0x4000fe70)
07-08 14:48:48.560: ERROR/AndroidRuntime(1047): Uncaught handler:
thread main exiting due to uncaught exception
07-08 14:48:48.570: ERROR/AndroidRuntime(1047): java.lang.VerifyError:
com.my.implementationService
07-08 14:48:48.570: ERROR/AndroidRuntime(1047):     at
java.lang.Class.newInstanceImpl(Native Method)
07-08 14:48:48.570: ERROR/AndroidRuntime(1047):     at
java.lang.Class.newInstance(Class.java:1472)
07-08 14:48:48.570: ERROR/AndroidRuntime(1047):     at
android.app.ActivityThread.handleCreateService(ActivityThread.java:
2446)
07-08 14:48:48.570: ERROR/AndroidRuntime(1047):     at
android.app.ActivityThread.access$2800(ActivityThread.java:112)
07-08 14:48:48.570: ERROR/AndroidRuntime(1047):     at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1744)
07-08 14:48:48.570: ERROR/AndroidRuntime(1047):     at
android.os.Handler.dispatchMessage(Handler.java:99)
07-08 14:48:48.570: ERROR/AndroidRuntime(1047):     at
android.os.Looper.loop(Looper.java:123)
07-08 14:48:48.570: ERROR/AndroidRuntime(1047):     at
android.app.ActivityThread.main(ActivityThread.java:3948)
07-08 14:48:48.570: ERROR/AndroidRuntime(1047):     at
java.lang.reflect.Method.invokeNative(Native Method)
07-08 14:48:48.570: ERROR/AndroidRuntime(1047):     at
java.lang.reflect.Method.invoke(Method.java:521)
07-08 14:48:48.570: ERROR/AndroidRuntime(1047):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:782)
07-08 14:48:48.570: ERROR/AndroidRuntime(1047):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
07-08 14:48:48.570: ERROR/AndroidRuntime(1047):     at
dalvik.system.NativeStart.main(Native Method)
07-08 14:48:48.579: INFO/Process(567): Sending signal. PID: 1047 SIG:
3

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

2. Cannot execute javascript function after loading html content with "loadDataWithBaseURL" method

Oh sorry, one more thing to mention.
If I use webView.loadUrl("javascript:alert('xx')"), it will send alert
message to my WebChromeClient.
That is, loadUrl can indeed execute javascript but cannot execute
javascript "in the custom generated HTML string".
Any ideas?



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

3. Cannot execute javascript function after loading html content with "loadDataWithBaseURL" method

4. MINA, slf4j and Android

5. GeoPoint issue

6. how can have faded transition on Button.setText?

7. how can i set fade animation on Button.setText?