Android布局重叠按钮在彼此的底部

时间:2017-06-24 18:22:23

标签: android xml

我想重叠布局底部的按钮,如下所示: overlap buttons on bottom of layout

如何在android studio中做到这一点?

1 个答案:

答案 0 :(得分:1)

我是通过父RelativeLayout上的减号填充来实现的,如下所示:

<RelativeLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:id="@+id/loading1"
    android:layout_marginBottom="-34dp"
    android:background="@drawable/alert">