我有一个HorizontalScrollView,其中包含一个LinearLayout来容纳我的所有View。我向LinearLayout添加了大约20个包含ImageView和TextView的RelativeLayout。如果ImageView在屏幕上(当我滚动到ImageView时),我只想加载图像。我尝试关注thispost要在缩略图上使用getHitRect(),但是,缩略图的Rect(边界)始终为0、0-0、0,导致我的方法返回false。我做错了什么?thumbnailLayout是我在HorizontalScrollView中的LinearLayoutthumb