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. Miring di Grand Indonesia

Ini ada penjahat2 nexus ga yah?

twitter: jakontil

sent from a milestone not a hotstone

On 18 Jan 2010 9:41 AM, "Subanindiyo Ardi" <subanindiyo.a...@gmail.com>



 Kebetulan hari ini tidak jadi ke kantor dan akhirnya ambil cuti, rencananya
nanti siang mau miring sama boss AH di Fab Cafe Grand Indonesia di pkl 13.00
Wib. Jika ada yg mau joint datang aja yah.

Salam,
S. Ardi

--
--------------------
"Indonesian Android Community [id-android]"

Join,  visit the following page:

2. Pass Array from Java to C (over JNI) work in an activity but fail in a thread?

hi! all:

I found that I need to use dynamically allocate for array.
Then the crash problem is solved.

However, I still don't know why it works when the native function is
called in the main activity...

Thanks in advance.




>  return (*env)->NewStringUTF(env, "show when no crash!");}

3. request_firmware

4. Kernel driver for National Instruments USB-6251 device

5. Software utk jadikan wifi router

6. Building with Ant

7. Program sqlite