From 64ebb2c1d3b729e087cc7f4337be4f02f18f2d91 Mon Sep 17 00:00:00 2001 From: "David A. Velasco" Date: Mon, 10 Aug 2015 11:12:43 +0200 Subject: [PATCH] Enforce to recalculate row height when measuring the footer to get it correctly placed in the grid view --- src/third_parties/in/srain/cube/GridViewWithHeaderAndFooter.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/third_parties/in/srain/cube/GridViewWithHeaderAndFooter.java b/src/third_parties/in/srain/cube/GridViewWithHeaderAndFooter.java index 508380a6..be487634 100644 --- a/src/third_parties/in/srain/cube/GridViewWithHeaderAndFooter.java +++ b/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()); } } -- 2.11.0