Эх сурвалжийг харах

Enforce to recalculate row height when measuring the footer to get it correctly placed in the grid view

David A. Velasco 9 жил өмнө
parent
commit
64ebb2c1d3

+ 1 - 0
src/third_parties/in/srain/cube/GridViewWithHeaderAndFooter.java

@@ -99,6 +99,7 @@ public class GridViewWithHeaderAndFooter extends GridView {
         ListAdapter adapter = getAdapter();
         if (adapter != null && adapter instanceof HeaderViewGridAdapter) {
             ((HeaderViewGridAdapter) adapter).setNumColumns(getNumColumnsCompatible());
+            invalidateRowHeight();
             ((HeaderViewGridAdapter) adapter).setRowHeight(getRowHeight());
         }
     }