Reputation: 60184
I have two View
s which reside one below another and I need to slightly overlap their edges so the bottom one was slightly under the top one.
Upvotes: 1
Views: 69
Reputation: 8028
use marginTop
and set to -dp
<ImageView
android:id="@+id/1"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<ImageView
android:id="@+id/2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/1"
android:layout_marginTop="-2dp"/>
Upvotes: 1