Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

How can I check if a ListView is partially hidden?

$
0
0

I have a ListView in my app. When there are a small number of list items available, I want to disable scrolling. I haven't been able to figure out how to determine if part of the list is off of the screen.

I found this question on StackOverflow related to android development which seems similar to what I want.

If I wait for my ListView's postlayout event and check $.list.rect.height, that only returns the height of the visible area. The same is true for $.list.size.height.


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>