aboutsummaryrefslogtreecommitdiff
path: root/src/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-02-25 18:50:55 -0800
committerScott Jackson <daneren2005@gmail.com>2015-02-25 18:50:55 -0800
commita5d0e6ed8f6e2b9cfec96c45087fe1b7b5bd2a2f (patch)
treee8b79fb3c9485c87bed34ad383c861a3607e763f /src/github
parente239b215a067e2d1de7201f0b9182cdcf59d818b (diff)
downloaddsub-a5d0e6ed8f6e2b9cfec96c45087fe1b7b5bd2a2f.tar.gz
dsub-a5d0e6ed8f6e2b9cfec96c45087fe1b7b5bd2a2f.tar.bz2
dsub-a5d0e6ed8f6e2b9cfec96c45087fe1b7b5bd2a2f.zip
Add getHeaderHeight method (merged from source)
Diffstat (limited to 'src/github')
-rw-r--r--src/github/daneren2005/dsub/view/HeaderGridView.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/view/HeaderGridView.java b/src/github/daneren2005/dsub/view/HeaderGridView.java
index 350e90ee..51d08ebf 100644
--- a/src/github/daneren2005/dsub/view/HeaderGridView.java
+++ b/src/github/daneren2005/dsub/view/HeaderGridView.java
@@ -300,6 +300,14 @@ public class HeaderGridView extends GridView {
mRowHeight = -1;
}
+ public int getHeaderHeight(int row) {
+ if (row >= 0) {
+ return mHeaderViewInfos.get(row).view.getMeasuredHeight();
+ }
+
+ return 0;
+ }
+
public int getRowHeight() {
if (mRowHeight > 0) {
return mRowHeight;