Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SquareGLSurfaceView 高度问题 #189

Open
cosplay-wang opened this issue Sep 9, 2020 · 1 comment
Open

SquareGLSurfaceView 高度问题 #189

cosplay-wang opened this issue Sep 9, 2020 · 1 comment

Comments

@cosplay-wang
Copy link

想要SquareGLSurfaceView 高度做一下UI上的调整,但是预设xml或者动态设置都不生效

@ShaoLongFei
Copy link
Contributor

SquareGLSurfaceView 是一个正方形的 GLSurfaceView,在 onMeasure 的时候调用了 setMeasuredDimension 将宽高都设置为了 width,所以你调整这个高度是无效的,你可以直接使用 GLSurfaceView。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants