android - Annoying line to the right of the screen when using TableLayout -


I am using a TableLayout for an activity and if I have more than a certain number of tables, then a perpendicular The line appears on the right side of the screen

If I use less views in my layout, then the line disappears. If this is not a bug, then where should I see my layout for problems?

This is a scrollbar. It appears that when your layout is longer than the screen. You can disable it in your table layout ( android: scrollbars = "none" with XML or setVerticalScrollBarEnabled (false) code). However, you should not do this because if you add too many rows, users will not only see them. If the scrollbar hides text, add a padding in the layout ( android: padding = "10dip" ).


Comments