super(context);
super(context, attrs); TypedArray a = context.obtainStyledAttributes(attrs, com.android.internal.R.styleable.ViewFlipper); mFlipInterval = a.getInt(com.android.internal.R.styleable.ViewFlipper_flipInterval, 3000); a.recycle();
Returns true if the child views are flipping. return mKeepFlipping;
return mKeepFlipping;
How long to wait before flipping to the next viewparammilliseconds time in milliseconds mFlipInterval = milliseconds;
mFlipInterval = milliseconds;
Start a timer to cycle through child views if (!mKeepFlipping) { mKeepFlipping = true; showOnly(mWhichChild); Message msg = mHandler.obtainMessage(FLIP_MSG); mHandler.sendMessageDelayed(msg, mFlipInterval); }
if (!mKeepFlipping) { mKeepFlipping = true; showOnly(mWhichChild); Message msg = mHandler.obtainMessage(FLIP_MSG); mHandler.sendMessageDelayed(msg, mFlipInterval); }
No more flips mKeepFlipping = false;
mKeepFlipping = false;