[英]How to achieve overlay with out using layerDrawable in android
I have two imageviews and I need to display one on top of other. 我有两个imageview,我需要在另一个之上显示一个。
I do not want to use layerDrawable. 我不想使用layerDrawable。 I need perform zoom operation on this imageviews equally.
我需要同样对此图像视图执行缩放操作。
How to achieve overlay with out using layerDrawable? 如何在不使用layerDrawable的情况下实现覆盖?
Thanks in advance. 提前致谢。
You can use a FrameLayout to place items on top of each other. 您可以使用FrameLayout将项目彼此放置。 You also try using a
RelativeLayout
and aligning the top and bottom of one ImageView
to the top and bottom of the other. 您还可以尝试使用
RelativeLayout
并将一个ImageView
的顶部和底部与另一个ImageView
的顶部和底部对齐。
使用FrameLayout并将ImageViews放在上面。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.