【发布时间】:2021-05-31 19:15:38
【问题描述】:
如何设计群聊资料?
【问题讨论】:
标签: android ios swift android-layout user-interface
如何设计群聊资料?
【问题讨论】:
标签: android ios swift android-layout user-interface
您只希望图片比其他图片多 1 吗? 您可以为此使用 RelativeLayout,它会将它们彼此重叠,然后您可以使用边距进行播放以根据需要移动它们。您也可以使用 toEndOf 参数,然后赋予负边距值以使它们部分重叠。 示例
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageButton
android:layout_width="50dp"
android:layout_height="50dp"
android:background="@null"
android:id="@+id/test_1"
android:src="@drawable/your_image_1"/>
<ImageButton
android:layout_width="50dp"
android:layout_height="50dp"
android:background="@null"
android:id="@+id/test_2"
android:layout_toEndOf="@id/test_1"
android:layout_marginStart="-20dp"
android:src="@drawable/your_image_2"/>
</RelativeLayout>
【讨论】: