首页 > 解决方案 > 如何在java中选择底部图像视图?

问题描述

我有两个图像视图。图片下方是我的照片和边框中的顶部图片。现在我希望能够在 imageView 下单击。但我不能,因为顶部的 imageView(border) 位于顶部。

<FrameLayout 
 android:layout_width="match_parent"
 android:layout_height="match_parent">

 <ImageView
     android:id="@+id/underImage"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     android:layout_weight="0.8"
     android:layout_margin="50dp"
     android:layout_gravity="center"
     android:scaleType="centerInside" />

 <ImageView
     android:id="@+id/topImage"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     android:layout_gravity="center"
     android:scaleType="fitXY"/>

</FrameLayout>

标签: javaxml

解决方案


推荐阅读