public class

GalleryFlowScale

extends GalleryFlowCover
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.GalleryFlowCover
             ↳ com.droidux.ui.widgets.gallery.GalleryFlowScale

Class Overview

A GalleryFlow widget with a linear flow that you can use to create a scale effect.

Summary

XML Attributes
Attribute Name Related Method Description
duxglr_scale setScale(float) Specifies the maximum scale factor of a view in a GalleryFlowScale widget. 
[Expand]
Inherited XML Attributes
From class com.droidux.ui.widgets.gallery.GalleryFlowCover
[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
GalleryFlowScale(Context context)
GalleryFlowScale(Context context, AttributeSet attrs)
GalleryFlowScale(Context context, AttributeSet attrs, int defStyle)
Public Methods
float getScale()
Gets the maximum scale that will be used to transform the view.
void setScale(float scale)
Sets the maximum scale that will be used to transform the view.
Protected Methods
boolean transformViewBitmap(View child, Transformation t)
[Expand]
Inherited Methods
From class com.droidux.ui.widgets.gallery.GalleryFlowCover
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_scale

Since: API Level

Specifies the maximum scale factor of a view in a GalleryFlowScale widget. The selected (center-locked) view is the frontmost view, with scale factor of 1f. The further the view from the center, the scale factor will be prorated until it reach the "maximum" (or minimum, depends on whether it's scaled up or down) value. The maximum scale value will be reached when the absolute distance of the view from the center of the gallery reached a certain distance as specified by the duxglr_distanceMaxEffect attribute.

Must be a floating point value, such as "1.2".

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

Public Constructors

public GalleryFlowScale (Context context)

Since: API Level 3.0

public GalleryFlowScale (Context context, AttributeSet attrs)

Since: API Level 3.0

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

Since: API Level 3.0

Public Methods

public float getScale ()

Since: API Level 3.0

Gets the maximum scale that will be used to transform the view. The selected (center-lock) view of the gallery will have a scale of 1f.

Related XML Attributes
Returns
  • The ratio between the scaled view and the center/selected view.

public void setScale (float scale)

Since: API Level 3.0

Sets the maximum scale that will be used to transform the view. The selected (center-lock) view of the gallery will have a scale of 1f.

Related XML Attributes
Parameters
scale The ratio between the scaled view and the center/selected view.

Protected Methods

protected boolean transformViewBitmap (View child, Transformation t)

Since: API Level