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.
目前 ImageView (或任何其他视图)只有 setTranslateX 和 setTranslateY ?但是如果我想在 Z 轴上移动它呢?我需要使用相机还是矩阵?如果是这样,那怎么办?给我一个例子。只有 OpenGl 才有可能吗?但如果是这样,那么我如何将 ImageView 与 OpenGL ES 一起使用?
如果您真的点击了我指向您的链接并阅读了答案,您就会从我这里找到答案。该答案包含以下句子:
使用RelativeLayout或FrameLayout。两者都支持 Z 轴排序——后面的孩子看起来会浮在前面的孩子之上。
RelativeLayout
FrameLayout
android:elevation财产就是你要找的。
android:elevation