Skip to content
Snippets Groups Projects
Commit 7cfca0e6 authored by Brais Gabín's avatar Brais Gabín Committed by Geoffrey Métais
Browse files

Fix fab margins


Signed-off-by: default avatarGeoffrey Métais <geoffrey.metais@gmail.com>
parent 09462926
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="25dp"
android:layout_margin="16dp"
vlc:layout_anchor="@+id/appbar"
vlc:layout_anchorGravity="bottom|right|end"
android:src="@drawable/ic_fab_play"
......
......@@ -157,8 +157,7 @@ public class PlaylistActivity extends AudioPlayerContainerActivity implements IE
mBinding.appbar.setExpanded(false);
final CoordinatorLayout.LayoutParams lp = (CoordinatorLayout.LayoutParams) mBinding.fab.getLayoutParams();
lp.setAnchorId(R.id.songs);
lp.anchorGravity = Gravity.BOTTOM|Gravity.END;
lp.bottomMargin = getResources().getDimensionPixelSize(R.dimen.default_margin);
lp.anchorGravity = Gravity.BOTTOM | Gravity.END;
lp.setBehavior(new FloatingActionButtonBehavior(PlaylistActivity.this, null));
mBinding.fab.setLayoutParams(lp);
mBinding.fab.show();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment