Android ViewGroup Rotation in 3d

前端 未结 2 958
时光说笑
时光说笑 2021-01-16 10:09

I want to rotate my own FrameLayout in 3d in android. Do i have to use GlSurfaceView class. I am new in computer graphics but know the theory behind the rotations and transl

2条回答
  •  -上瘾入骨i
    2021-01-16 10:42

    Framelayouts (and anything extending View) are designed to be drawn on a Canvas element in 2D. It is not possible to draw these using openGL. If you want to draw a GUI in 3D/GL then you will have to code that up from scratch or find a library which has already done this. I'm sure there are a few out there but I haven't had the need for one yet.

    You can get some fake looking 3D effects on views by using scale animations, though these will only work if the animation is done fast so the user doesn't notice. This probably isn't what you are after.

    
    
    

提交回复
热议问题