[Android] Fix fab margins
Brais Gabín
git at videolan.org
Thu Jan 24 13:36:06 CET 2019
vlc-android | branch: master | Brais Gabín <braisgabin at gmail.com> | Sun Jan 20 15:06:37 2019 +0100| [7cfca0e6758a8816f898eecb50f1a5a7f7b644d6] | committer: Geoffrey Métais
Fix fab margins
Signed-off-by: Geoffrey Métais <geoffrey.metais at gmail.com>
> https://code.videolan.org/videolan/vlc-android/commit/7cfca0e6758a8816f898eecb50f1a5a7f7b644d6
---
vlc-android/res/layout/playlist_activity.xml | 2 +-
vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.java | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/vlc-android/res/layout/playlist_activity.xml b/vlc-android/res/layout/playlist_activity.xml
index 737be9d14..8e347f4df 100644
--- a/vlc-android/res/layout/playlist_activity.xml
+++ b/vlc-android/res/layout/playlist_activity.xml
@@ -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"
diff --git a/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.java b/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.java
index 90d00a862..b5f2561a4 100644
--- a/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.java
@@ -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();
More information about the Android
mailing list