android - android图像水平堆叠在一起
解决方案
请使用此代码:-
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
android:layout_width="120dp"
android:layout_height="120dp"
android:contentDescription="@string/app_name"
android:src="@drawable/image_1" />
<ImageView
android:layout_width="120dp"
android:layout_height="120dp"
android:layout_marginStart="-50dp"
android:contentDescription="@string/app_name"
android:src="@drawable/image_2" />
<ImageView
android:layout_width="120dp"
android:layout_height="120dp"
android:layout_marginStart="-50dp"
android:contentDescription="@string/app_name"
android:src="@drawable/image_3" />
<ImageView
android:layout_width="120dp"
android:layout_height="120dp"
android:layout_marginStart="-50dp"
android:contentDescription="@string/app_name"
android:src="@drawable/image_4" />
</LinearLayout>
推荐阅读
- r - 在 FREDR 语法中分配变量参数
- xslt - 基于节点变量增量 xml 中的值的 xml 的 xslt 转换
- java - 为什么我不需要在构造方法中使用静态?
- python - 我想输入一个区间列表并检查重叠区间并集的区间和非重叠区间的区间
- javascript - 我可以在 package.json 中多放一些东西吗?
- kubernetes-ingress - AKS AGIC 应用程序网关入口控制器未部署
- python - 使用键和所有可能的值组合的字典中的数据框
- c# - 获取点击行的 ListView 项目值
- python - 如何正确地重写某些 Python 代码以在 PHP 中卷曲
- java - Spring Boot 项目的 JUnit 和 Mockito 依赖项