Code example for AbsListView

Methods: getChildAt, getChildVisibleRect

0
	 */ 
	private static ChildDescriptor getFirstChildItemDescriptor(AbsListView view, int index){
		ChildDescriptor h = new ChildDescriptor(index);
		try{ 
			Rect r = new Rect();
			View child = view.getChildAt(0);
			child.getDrawingRect(r);
			h.total = r.height();
			view.getChildVisibleRect(child, r, null);
			h.drawable = r.height();
			return h;
		} catch (Exception e){}
		return null; 
	} 
 
 
	@Override 
	public void onScrollStateChanged(AbsListView view, int scrollState) {
		// passing off to the extra listener, if there is one 
		if(onscrolllistener != null){
			onscrolllistener.onScrollStateChanged(view, scrollState);