Iman Marashi
Iman Marashi

Reputation: 5753

Android layout overlap buttons on bottom of each other

I want to overlap buttons on bottom of layout, like this: overlap buttons on bottom of layout

How to do it in android studio?

Upvotes: 0

Views: 218

Answers (1)

Iman Marashi
Iman Marashi

Reputation: 5753

I do it by minus padding on parent RelativeLayout like this:

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

Upvotes: 1

Related Questions