Code example for AbsListView

Methods: getChildAt

0
		/** 
		 * Calculate sticker margin from top if it can shift by section 
		 */ 
		private void calculateStickerMargin () { 
			if (mNextSectionChild != INVALID_POSITION) {
				final int top = mParent.getChildAt(mNextSectionChild).getTop();
 
				if (top < 0 || top > getSectionHeight()) {
					mTop = 0;
				} else { 
					mTop = top - getSectionHeight();
				} 
			} else { 
				mTop = 0;
			} 
		} 
	} 
 
	/** 
	 * OnScrollListener for tracking changes of children's positions 
	 */