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. Camera Autofocus

Hello, I want to develop an APP that use the cameras and it's always
running taken the preview images to analyze them. But, I don't want it
analyze all of them; I only want that it goes to analyze in all of the
frames when the camera is autofocused.... there is any way to know it
(apart of using Autofocus callback). So, what I want is to know when
the program is in the function onPreviewFrame it's there is any way to
know if the cam is focused. Thank you!

-- 

2. Offer a paid app

Hi,

One of the users of my app help me and I would like to offer him the
app. Can I refund him in way that he keeps the app? (I don't care if I
pay 30% part of google)

Regards,
Datoh.

-- 

3. android.web.id sudah online

4. Regarding Audio and Video send/receive on Android.

5. Ebook android

6. id-android My Maps...

7. Bikin web untuk id-android