A ScrollView always has 1 child. All you need to do is get the height of the child to determine the total height:
int totalHeight = scrollView.getChildAt(0).getHeight();
A ScrollView always has 1 child. All you need to do is get the height of the child to determine the total height:
int totalHeight = scrollView.getChildAt(0).getHeight();