java - 如何在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>
解决方案
推荐阅读
- c# - 在列表中查找具有特定长度的数组的索引?
- asp.net - 允许用户在 Authorize[] middleare .Net Core Api 中仅使用 id 访问他/她自己的资源
- c# - 如何使用 C# 连接多个 excel 列
- c# - 如果这些游戏对象与 UI 无关,是否可以将 Canvas 对象 (rectTransform) 与常规游戏对象 (transform) 混合?
- node.js - TypeError: webpack.DefinePlugin 不是构造函数
- asp.net-core-webapi - 是否可以检索受 Dapper 查询影响的行数?
- go - 导入模块位于 Goland IDE 的子文件夹中
- r - rstudio如何选择在启动时/项目关闭时打开哪些文件
- algorithm - 使用具有重复值的中序和预序构造二叉树
- java - 从 Excel 导出的 CSV (UTF-8) 文件的默认行终止符是什么?