【问题标题】:How to design group chat like this [closed]如何设计这样的群聊[关闭]
【发布时间】:2021-05-31 19:15:38
【问题描述】:

如何设计群聊资料?

【问题讨论】:

    标签: android ios swift android-layout user-interface


    【解决方案1】:

    您只希望图片比其他图片多 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>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-11-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-24
      • 1970-01-01
      相关资源
      最近更新 更多