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. update and delete contact / contact details

I would like my code to update contact details (like name, phone
number, email, organization details, etc) in the android contact book.
I was successful in modifying a few (name, phone number and email to
be specific) but not all.

--

2. PPTP VPN connection problems

This really isn't a development question but not sure where else to
turn, as I haven't found an answer.

I am trying to connect android 2.1 on the Verizon Droid to a linksys
router with a PPTP server.  The router provids an IP, but the phone
never connects.  I tried to setup a VPN connection with my PC and got
the same results.  I am not getting any feedback to help debug my
problem.  The log on the phone says connection timeout.  It seems the
VPN servers are receiving the request and issuing the IP, but the
phone does not complete the connection.

Any ideas on how to solve this problem?

--

3. Reg: Mobile Applications For Your Organization

4. List Render Exception

5. Why loghack.h is needed under system/core/libcutils/ folder? Why <cutils/log.h> can not be used in libcutils module?

6. Purchasing Android Software - Syntax problems with the market app

7. Coding for Charity - A Holiday Coding Adventure