Scrolling a dynamically filled AbsoluteLayout.

by rocrail » Fri, 23 Apr 2010 08:03:42 GMT


Sponsored Links
 Hi,

I'm searching for a few days now but I cannot find a scrolling
solution for the following layout:

<ScrollView xmlns:android=" http://schemas.android.com/apk/res/ 
android"
  android:id="@+id/levelScrollView"
  android:background="@drawable/solid_white"
  android:layout_width="fill_parent"
android:layout_height="fill_parent" >
  <LinearLayout android:layout_width="1024px"
android:layout_height="1024px">
  <AbsoluteLayout android:layout_width="1024px" android:id="@+id/
levelView"
    android:background="@drawable/solid_white"
android:layout_height="1024px" android:minHeight="1024px"
android:minWidth="1024px">
  </AbsoluteLayout>
  </LinearLayout>
</ScrollView>

The 1024px are set to test but should be dynamically set to the needed
width and height during runtime.
Vertically scrolling works, but I do not get it horizontally scrolling
too.
See the screen shot of the 'Layout level' view in action:
 http://wiki.rocrail.net/doku.php?id=androc-intro-en #qvga_gallery

Any advice? Or do I have a design problem in this layout?

Best regards,
Rob Versluis.
 http://www.rocrail.net 

--



Other Threads

1. Need some knowledge on android emulator | Please Help

This sounds to me like a question for this forum:

 http://www.***.com/ 

the emulator ships with the SDK, and you're talking about modifying
it.  So the question wouldn't be or Android Developers, which would
leave Android Framework, I believe.

You can also try:

 http://www.***.com/ 


Not that it was a mistake to ask in Android discuss.  In theory this
is the official Android water cooler.



> 

2. "waitForCondition(ReallocateCondition) timed out" messages w/deadlock in 2.1?

I was seeing these with Droid OpenGL reinit and now saw it again on a
regular activity/surfaceview that I was just working with.

W/SharedBufferStack(   74): waitForCondition(ReallocateCondition)
timed out (identity=13831, status=0). CPU may be pegged. trying again.

This happens on a Droid w/2.1 and now my Nexus One w/2.1.  What is
going on here?  This repeats until the process is killed.

I can't reproduce it in the SurfaceView but can reproduce it very
reliably with the Droid EGL reinit stuff.

-- 

3. How to play three images as an animation on Widget?

4. ImageView - Set width in code?

5. This code crashes the app. Could someone tell me what I'm doing wrong?

6. Melacak Robot yang Hilang

7. AbstractAccountAuthenticator getAuthToken