I'm trying to indicate whether a certain view (say - view A) is 100% visible, meaning, if it's a 100x100 view, I want to make sure all 10000 pixels are shown.
Sample:
--------------
| |
| ___ |
| |A| |
| --- |
| |
--------------
Should return 100% whereas:
--------------
| |
| _________|_________
| |A | |
| ---------|---------
| |
--------------
Should return roughly 50%.
I've tried measuring globalVisibleRect, localVisibleRect, hitTest, drawableRect, focusableRect, and they are all the same, no matter if the view is totally visible or not.
Any ideas?