开发者

android XML TableLayout issue: horizontal scroller going outside of right side of screen

开发者 https://www.devze.com 2023-01-06 11:04 出处:网络
I have a TableLayout with a tableRow and a horizontal scroll view in the 2nd column, but the right side always gets cut off. IF i have only 1 tableRow, it开发者_StackOverflow中文版 works, otherwise it

I have a TableLayout with a tableRow and a horizontal scroll view in the 2nd column, but the right side always gets cut off. IF i have only 1 tableRow, it开发者_StackOverflow中文版 works, otherwise it goes past the visible area of the screen. To simply and isolate the problem heres an xml file with the guilty culprits. It seems basic but i have been super frustrated trying to get this to work.

. for some reason Stackoverflow isnt displaying my code correctly, heres a pastebin. link text


To fix this, i found out using

android:shrinkColumns="2"

(2 being the column with the horizontal scroller) fixes the issue.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号