How can I leave a LinearLayout and FloatingActionButton inside a Scrollview with no distance between them. For example convert image one to image two
image 1
image 2
Code xml
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentBottom="true"
android:layout_alignParentStart="true"
android:layout_marginTop="50dp"
android:layout_margin="15dp"
android:background="@drawable/notInicio_1"
android:orientation="vertical">
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_gravity="bottom|end"
app:backgroundTint="#CCFFFFFF"
app:backgroundTintMode="src_in"
app:srcCompat="@drawable/xxxx"></android.support.design.widget.FloatingActionButton>
</LinearLayout>
</ScrollView>
I hope you can understand my doubt, Thank you ..