Code example for LinearLayout

Methods: getVisibility

0
		int action = me.getAction() & MotionEvent.ACTION_MASK;
		if(mVt == null) {
			mVt = VelocityTracker.obtain();
		} 
		mVt.addMovement(me);
		if(mCtrls.getVisibility() == View.INVISIBLE) {
			resetChangeVisibility(); 
		} 
		long curr = System.currentTimeMillis();
		switch(action) {
		case MotionEvent.ACTION_DOWN:
			mController.stopFling();
			mPrevX = me.getX();
			mPrevY = me.getY();
			if(mPrevDown <= 0) {
				mPrevDown = curr;
			} 
			long del = curr - mPrevDown;
			// if it is already reset, then there's no point doing it again! 
			if((del > MIN_DOUBLE_TAP) && (del < MAX_DOUBLE_TAP) && (mMode != MODE_RESET)) {
				mPrevMode = mMode;