예제 #1
0
 public void onDraw(android.graphics.Canvas canvas) {
   if (callbackProcs != null && callbackProcs[CB_DRAW] != null) {
     super.onDraw(canvas);
     Script.callMethod(callbackProcs[CB_DRAW], "call", canvas);
   } else {
     super.onDraw(canvas);
   }
 }
	@Override
	protected void onDraw(Canvas canvas) {
		super.onDraw(canvas);
		
		// If we were just measured, then we probably need to scroll away from the header view.
		// FIXME This doesn't actually work as planned, but it somewhat works.
		// There has to be a better way.
		if (mNeedScroll) {
			if (getScrollY() == mHeaderContainer.getBottom()) {
				mNeedScroll = false;
			} else {
				hideRefreshView();
			}
		}
	}