[Android] More columns in video grid view

Geoffrey Métais git at videolan.org
Tue Mar 1 19:12:05 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Mar  1 19:01:30 2016 +0100| [44bfdb9f58c635829edf7a652f1149a4bf0f0d68] | committer: Geoffrey Métais

More columns in video grid view

> https://code.videolan.org/videolan/vlc-android/commit/44bfdb9f58c635829edf7a652f1149a4bf0f0d68
---

 vlc-android/src/org/videolan/vlc/view/AutoFitRecyclerView.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/view/AutoFitRecyclerView.java b/vlc-android/src/org/videolan/vlc/view/AutoFitRecyclerView.java
index 375b561..1fb2684 100644
--- a/vlc-android/src/org/videolan/vlc/view/AutoFitRecyclerView.java
+++ b/vlc-android/src/org/videolan/vlc/view/AutoFitRecyclerView.java
@@ -69,7 +69,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.2));
+            int ratio = (int) (getMeasuredWidth() / (mColumnWidth*1.1));
             int spanCount = Math.max(1, ratio);
             mGridLayoutManager.setSpanCount(spanCount);
         } else



More information about the Android mailing list