I was wondering, how to check whether the current ScrollView
is scrollable? It seems that, there isn't public method called canScroll
or isScrollable
in ScrollView
.
Scrollable : You can move the ViewGroup inside the ScrollView up and down, and the scroll bar will be visible when you move it up and down. So, if there is only little rows in the ScrollView
, and they can fit inside single screen, ScrollView
is not scrollable then.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…