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. DDMS memory usage

When I view a nexus one in DDMS, under SysInfo "Memory Usage", it
doesn't show the individual names of the apps in the pie chart:
Everything is in "Unknown". I presume this is a build switch. Is it
debug vs release build? How is this switched in the build?

-- 

2. Android Market Licensing: Now Circumvented!

Looks like the word is spreading on how to circumvent the Google
Licensing Verification Library:

http://www.androidpolice.com/2010/08/23/exclusive-report-googles-android-market-license-verification-easily-circumvented-will-not-stop-pirates/

The concern here is that this could be done easily via script/
automated tool such that implementing the licensing code would be more
work for the developer than for some cracker patching your app to
remove it. What does everyone think of this?

-- 

3. Add CheckBox on buttonclick - Dynamic Mode

4. Memory usage profiling an openGL application?

5. does Google forbid orientation animation on purpose?

6. TrackballGestureDetector

7. how to write data to the existing xml file using code in android