Android Align Fab in ConstraintLayout

The FloatingActionButton can be aligned to all corners of the parent ConstraintLayout: FAB constraint relation XML markup top & start app:layout_constraintTop_toTopOf=”parent”app:layout_constraintStart_toStartOf=”parent” top & end app:layout_constraintTop_toTopOf=”parent”app:layout_constraintEnd_toEndOf=”parent” bottom & start app:layout_constraintBottom_toBottomOf=”parent”app:layout_constraintStart_toStartOf=”parent” bottom & end app:layout_constraintBottom_toBottomOf=”parent”app:layout_constraintEnd_toEndOf=”parent” To evenly position it, use layout_margin: android:layout_margin=”24dp”…

Devamını oku