I’m using a TableLayout for an Activity and if I have more than a certain number of TableRows a vertical line appears to the right of the screen.
alt text http://dl.dropbox.com/u/5342899/device.png
If I use fewer Views in my layout, the line disappears. If this is not a bug, where should I look in my layout for problems?
It is a scrollbar. It appears when your layout is longer than the screen. You can disable it on your TableLayout (
android:scrollbars="none"in XML orsetVerticalScrollBarEnabled(false)from code).However, you shouldn’t do that because if you add too much rows, the user simply won’t see them.
If the scrollbar hides text, add a padding to the layout (
android:padding="10dip").