开发者

GLSurfaceView in LinearLayout Follow Up Question

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜