开发者

GLSurfaceView in LinearLayout Follow Up Question

开发者 https://www.devze.com 2023-03-06 06:20 出处:网络
Please see this question I asked a few days ago: GLSurfaceView in LinearLayout The answer that was given worked very well... but I would like to know if there is a more detailed explanation on why th

Please see this question I asked a few days ago: GLSurfaceView in LinearLayout

The answer that was given worked very well... but I would like to know if there is a more detailed explanation on why this works?

From my comments, "Working with other view types, and look开发者_如何学Cing at the examples provided for LinearLayout, using wrap_content should work AFAIK. Can you provide any documentation links or further explanation?"

"Is the issue with the GLSurfaceView wanting too much space initially when wrap_content is used?"


It's just because GLSurfaceView does not have the notion of "content." So when you tell a SurfaceView to have a height="wrap_content" it grabs all of the available space.

0

精彩评论

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