Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
相对布局高度,当高度大于屏幕时如何捕获?my_rl.getheight() 不起作用,返回的大小是屏幕的高度,而不是我的相对布局。谢谢。
尝试View.getMeasuredHeight()改用。解释。
View.getMeasuredHeight()