public class

ViewFlipper3D

extends ViewFlipper
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.FrameLayout
         ↳ android.widget.ViewAnimator
           ↳ android.widget.ViewFlipper
             ↳ com.droidux.pack.layouts.widget.ViewFlipper3D

Class Overview

A ViewFlipper with a 3D flip animation.

Summary

XML Attributes
Attribute Name Related Method Description
android:duration setFlipDuration(long)  
dux_flipDirection setFlipDirection(int) Sets the direction of the flip 3d rotation. 
dux_zoomScale setZoomScale(float) Sets the scale factor to create "zoom" effect to the flip 3d animation. 
android:interpolator setFlipInterpolator(int)  
[Expand]
Inherited Constants
From class android.view.ViewGroup
From class android.view.View
Fields
public static final int FLIP_DIRECTION_LEFT_RIGHT Flip flom left to right.
public static final int FLIP_DIRECTION_RIGHT_LEFT Flip from right to left.
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
ViewFlipper3D(Context context)
ViewFlipper3D(Context context, AttributeSet attrs)
Public Methods
void setFlipDirection(int flipDirection)
Sets the direction of the flip.
void setFlipDuration(long millis)
Sets the total flip duration in milli seconds.
void setFlipInterpolator(int resId)
Sets the Interpolator to be used by the flip 3d animation.
void setFlipInterpolator(Interpolator interpolator)
Sets the Interpolator to be used by the flip 3d animation.
void setInAnimation(Animation inAnimation)
Calling this method doesn't have any effect.
void setOutAnimation(Animation outAnimation)
Calling this method doesn't have any effect.
void setZoomScale(float zoomScale)
Sets the scale factor to create "zoom" effect to the flip 3d animation.
[Expand]
Inherited Methods
From class android.widget.ViewFlipper
From class android.widget.ViewAnimator
From class android.widget.FrameLayout
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.ViewManager
From interface android.view.ViewParent
From interface android.view.accessibility.AccessibilityEventSource

XML Attributes

android:duration

Since: API Level

Related Methods

dux_flipDirection

Since: API Level

Sets the direction of the flip 3d rotation.

Must be one of the following constant values.

ConstantValueDescription
leftRight0 Flip from left to right.
rightLeft1 Flip from right to left.

Related Methods

dux_zoomScale

Since: API Level

Sets the scale factor to create "zoom" effect to the flip 3d animation.

Value must be between 0 - 1. Default is 0.7.

Related Methods

android:interpolator

Since: API Level

Related Methods

Fields

public static final int FLIP_DIRECTION_LEFT_RIGHT

Since: API Level 2.5

Flip flom left to right.

public static final int FLIP_DIRECTION_RIGHT_LEFT

Since: API Level 2.5

Flip from right to left.

Public Constructors

public ViewFlipper3D (Context context)

Since: API Level 2.5

public ViewFlipper3D (Context context, AttributeSet attrs)

Since: API Level 2.5

Public Methods

public void setFlipDirection (int flipDirection)

Since: API Level 2.5

Sets the direction of the flip. Can be either FLIP_DIRECTION_LEFT_RIGHT or FLIP_DIRECTION_RIGHT_LEFT.

Related XML Attributes
Parameters
flipDirection The direction.

public void setFlipDuration (long millis)

Since: API Level 2.5

Sets the total flip duration in milli seconds.

Related XML Attributes
Parameters
millis The duration in milli seconds.

public void setFlipInterpolator (int resId)

Since: API Level 2.5

Sets the Interpolator to be used by the flip 3d animation.

Related XML Attributes
Parameters
resId The interpolator resource id.

public void setFlipInterpolator (Interpolator interpolator)

Since: API Level 2.5

Sets the Interpolator to be used by the flip 3d animation.

Parameters
interpolator The interpolator.

public void setInAnimation (Animation inAnimation)

Since: API Level

Calling this method doesn't have any effect. This widget uses an internal animation.

Parameters
inAnimation The animation started when a View enters the screen.

public void setOutAnimation (Animation outAnimation)

Since: API Level

Calling this method doesn't have any effect. This widget uses an internal animation.

Parameters
outAnimation The animation started when a View exit the screen.

public void setZoomScale (float zoomScale)

Since: API Level 2.5

Sets the scale factor to create "zoom" effect to the flip 3d animation.

Related XML Attributes
Parameters
zoomScale The scale factor. Must be between 0-1. Default is 0.7.