Scrollbar not working

by New Developer » Sun, 27 Mar 2011 20:11:22 GMT

Sponsored Links
 I have the following in the XML
<TableLayout android:id="@+id/TableLayout01" 

I add the items dynamically from a database using

private ListView  listView = null;
listView = (ListView) findViewById(;

It shows a very narrow scrollbar.
But the list does not scroll and the scroll bar has no effect, which I click 
the scrollbar to move it
the scrollbar fades away.  any Ideas ?

Thanks in advance


Re: Scrollbar not working

by Mark Murphy » Sun, 27 Mar 2011 20:28:34 GMT

 Android does not use scrollbars for more than a momentary display of
position. This is by design. The concept of a scrollbar as being the
mechanism for scrolling is for mouse-based UIs. Touchscreens scroll
via gestures sliding the whole thing up and down.

I strongly encourage you to use some touchscreen hardware -- whether
or not it is an Android phone -- before you start attempting to write
Android applications.

Mark Murphy (a Commons Guy)  |  | 

Android Training in Oslo: 


Sponsored Links

Re: Scrollbar not working

by New Developer » Sun, 27 Mar 2011 23:43:38 GMT


I have tried an android phone
Okay let me ask this  how then to you correctly test a ListView  with a scroll  
on the emulator ??
What is the correct method ?

Thanks again


Re: Scrollbar not working

by Mark Murphy » Sun, 27 Mar 2011 23:45:52 GMT

 Use your mouse to simulate a finger.

Mark Murphy (a Commons Guy)  |  | 

Android Training in Oslo: 


Other Threads

1. ADT 8 doesn't include ADB??

So i upgraded to ADT v8 and now my ADB is gone, did i do something

(I'm on windows)


2. Booting Android

Hi alltogether,

I use a 2.6.33 Kernel for a cpu. I've patched the files and
drivers described
in :

Afterwards I set the kernel config as  recommended in;a=blob_plain;f=Documentation/android.txt;hb=HEAD

Then I got the system.img, ramdisk.img and userdata.img as described
here: from the emulator

Now I want get Android started but some files are missing:

device/system/bin/dbus-daemon is missung
device/system/bin/runtime is missing
device/system/bin/logd is missing

and last but not least

device/system/bin/usbd is missing.

When I tried to follow the instructions form
the problem is: dbus-daemon and runtime is unknown.

Now my question:
May I use the dbus-daemon from my standart system?
Where do I get / How can I build the runtime routine?

These questions may seem for you experienced developers
maybe a bit stupid but I hope some of you can help me.

With best regards,



3. How to which function is calling a function at runtime?

4. Is there any android expert from Google or any other company?

5. setting property in init.rc for FROYO

6. How to user my layout

7. Eml Parser