[Android] Ask for 20% spacing
Geoffrey Métais
git at videolan.org
Fri Apr 29 18:01:06 CEST 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Apr 29 17:59:57 2016 +0200| [cc9151a2a1bc69d380ca4a6444caf32ae0a49d3b] | committer: Geoffrey Métais
Ask for 20% spacing
> https://code.videolan.org/videolan/vlc-android/commit/cc9151a2a1bc69d380ca4a6444caf32ae0a49d3b
---
vlc-android/src/org/videolan/vlc/gui/view/AutoFitRecyclerView.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/view/AutoFitRecyclerView.java b/vlc-android/src/org/videolan/vlc/gui/view/AutoFitRecyclerView.java
index 6b94156..3a1f182 100644
--- a/vlc-android/src/org/videolan/vlc/gui/view/AutoFitRecyclerView.java
+++ b/vlc-android/src/org/videolan/vlc/gui/view/AutoFitRecyclerView.java
@@ -67,7 +67,7 @@ public class AutoFitRecyclerView extends ContextMenuRecyclerView {
protected void onMeasure(int widthSpec, int heightSpec) {
super.onMeasure(widthSpec, heightSpec);
if (mSpanCount == -1 && mColumnWidth > 0) {
- int ratio = (int) (getMeasuredWidth() / (mColumnWidth*1.1));
+ int ratio = (int) (getMeasuredWidth() / (mColumnWidth*1.2));
int spanCount = Math.max(1, ratio);
mGridLayoutManager.setSpanCount(spanCount);
} else
More information about the Android
mailing list