public class

GalleryFlowCarousel

extends GalleryFlowView
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ com.droidux.ui.widgets.gallery.DuxAdapterView<T extends android.widget.Adapter>
         ↳ com.droidux.ui.widgets.gallery.GalleryFlowView
           ↳ com.droidux.ui.widgets.gallery.GalleryFlowCarousel

Class Overview

A GalleryFlow widget that flows in a circular/radial path (like a carousel).

You can set whether the flow view point should be inside (like looking at the carousel from the inside), or outside (like looking at the carousel from the outside), by setting the dux_viewPoint attribute (default is inside), or calling the setViewPoint(int) method.

Summary

XML Attributes
Attribute Name Related Method Description
duxglr_edgeAngle setEdgeAngle(int) Specifies the rotation angle (in degrees) of outermost/edge view in a GalleryFlow with a radial flow/path, such as the GalleryFlowCarousel
duxglr_viewPoint setViewPoint(int) Specifies the view point when looking at the GalleryFlow widget with a radial flow/path, such as the GalleryFlowCarousel
Constants
int VIEW_POINT_INSIDE View the gallery from the inside.
int VIEW_POINT_OUTSIDE View the gallery from the outside.
[Expand]
Inherited Constants
From class com.droidux.ui.widgets.gallery.DuxAdapterView
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
GalleryFlowCarousel(Context context)
GalleryFlowCarousel(Context context, AttributeSet attrs)
GalleryFlowCarousel(Context context, AttributeSet attrs, int defStyle)
Public Methods
int getEdgeAngle()
Gets the rotation angle of the outermost/edge view.
int getViewPoint()
Gets the view point when looking at the GalleryFlow widget with a radial flow/path.
void setEdgeAngle(int edgeAngle)
Sets the rotation angle of the outermost/edge view.
void setViewPoint(int viewPoint)
Sets the view point when looking at the GalleryFlow widget with a radial flow/path.
Protected Methods
boolean transformViewBitmap(View child, Transformation t)
[Expand]
Inherited Methods
From class com.droidux.ui.widgets.gallery.GalleryFlowView
From class com.droidux.ui.widgets.gallery.DuxAdapterView
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.GestureDetector.OnGestureListener
From interface android.view.KeyEvent.Callback
From interface android.view.ViewManager
From interface android.view.ViewParent
From interface android.view.accessibility.AccessibilityEventSource

XML Attributes

duxglr_edgeAngle

Since: API Level

Specifies the rotation angle (in degrees) of outermost/edge view in a GalleryFlow with a radial flow/path, such as the GalleryFlowCarousel. This angle will determine the curvature of the flow.

Range: 0-60

Must be an integer value, such as "100".

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

Related Methods

duxglr_viewPoint

Since: API Level

Specifies the view point when looking at the GalleryFlow widget with a radial flow/path, such as the GalleryFlowCarousel.

Must be one of the following constant values.

ConstantValueDescription
inside0Looking at the GalleryFlow from inside.
outside1 Looking at the GalleryFlow from outside.

Related Methods

Constants

public static final int VIEW_POINT_INSIDE

Since: API Level 3.0

View the gallery from the inside.

Constant Value: 0 (0x00000000)

public static final int VIEW_POINT_OUTSIDE

Since: API Level 3.0

View the gallery from the outside.

Constant Value: 1 (0x00000001)

Public Constructors

public GalleryFlowCarousel (Context context)

Since: API Level 3.0

public GalleryFlowCarousel (Context context, AttributeSet attrs)

Since: API Level 3.0

public GalleryFlowCarousel (Context context, AttributeSet attrs, int defStyle)

Since: API Level 3.0

Public Methods

public int getEdgeAngle ()

Since: API Level 3.0

Gets the rotation angle of the outermost/edge view. This angle determine the curvature of the flow.

Related XML Attributes
Returns
  • The angle of the outermost/edge view.

public int getViewPoint ()

Since: API Level 3.0

Gets the view point when looking at the GalleryFlow widget with a radial flow/path.

Related XML Attributes
Returns

public void setEdgeAngle (int edgeAngle)

Since: API Level 3.0

Sets the rotation angle of the outermost/edge view. This angle determine the curvature of the flow.

Related XML Attributes
Parameters
edgeAngle The angle of the outermost/edge view.

public void setViewPoint (int viewPoint)

Since: API Level 3.0

Sets the view point when looking at the GalleryFlow widget with a radial flow/path.

Related XML Attributes
Parameters
viewPoint VIEW_POINT_INSIDE to look from the inside of the carousel, or VIEW_POINT_OUTSIDE to look from the outside.

Protected Methods

protected boolean transformViewBitmap (View child, Transformation t)

Since: API Level 3.1