Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using coordinatorLayout anchor's with constraintLayout

I want to design something like this :

enter image description here

as you can see fab is between header and the body.

it's easy to do it with coordinatorLayout with app:anchor and app:anchorGravity attributes

but i want to do it with constraintLayout.

any ideas ?

like image 715
Mahdi Nouri Avatar asked Nov 16 '17 15:11

Mahdi Nouri


1 Answers

I've found the answer :))

<FAB
   ...
   app:layout_constraintTop_toBottomOf="@+id/header"
   app:layout_constraintBottom_toTopOf="@id/body"/>
like image 114
Mahdi Nouri Avatar answered Sep 21 '22 00:09

Mahdi Nouri