public class

GalleryFlowWall

extends GalleryFlowCarousel
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.AdapterView<T extends android.widget.Adapter>
         ↳ android.widget.AbsSpinner
           ↳ android.widget.Gallery
             ↳ com.droidux.pack.gallery.widget.GalleryFlowCarousel
               ↳ com.droidux.pack.gallery.widget.GalleryFlowWall

Class Overview

A GalleryFlow widget with a radial/circular flow that you can use to create a wall effect.

You can set height of the wall by setting the dux_wallHeight attribute.

Summary

XML Attributes
Attribute Name Related Method Description
dux_cellSpacing Specifies the spacing between cells. 
dux_selectorDrawable Reference to a drawable resource to use for a selector. 
dux_wallHeight Specifies the height (number of cells in the vertical direction) of the 'wall' in a com.droidux.widget.gallery.GalleryFlowWall widget. 
[Expand]
Inherited XML Attributes
From class com.droidux.pack.gallery.widget.GalleryFlowCarousel
[Expand]
Inherited Constants
From class android.widget.AdapterView
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class com.droidux.pack.gallery.widget.GalleryFlowCarousel
From class android.view.View
Public Constructors
GalleryFlowWall(Context context)
GalleryFlowWall(Context context, AttributeSet attrs)
GalleryFlowWall(Context context, AttributeSet attrs, int defStyle)
Public Methods
GalleryFlowInterfaces.Wall.OnCellClickListener getOnCellClickListener()
int getWallHeight()
boolean onDown(MotionEvent e)
Notified when a tap occurs with the down MotionEvent that triggered it.
boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY)
Notified when a scroll occurs with the initial on down MotionEvent and the current move MotionEvent.
boolean onSingleTapUp(MotionEvent e)
Notified when a tap occurs with the up MotionEvent that triggered it.
boolean onTouchEvent(MotionEvent event)
Implement this method to handle touch screen motion events.
void setAdapter(SpinnerAdapter adapter)
The Adapter is used to provide the data which backs this Spinner.
void setOnCellClickListener(GalleryFlowInterfaces.Wall.OnCellClickListener listener)
void setWallHeight(int wallHeight)
Protected Methods
void detachViewsFromParent(int start, int count)
Detaches a range of views from their parents.
void onDetachedFromWindow()
This is called when the view is detached from a window.
void removeDetachedView(View child, boolean animate)
Finishes the removal of a detached view.
[Expand]
Inherited Methods
From class com.droidux.pack.gallery.widget.GalleryFlowCarousel
From class android.widget.Gallery
From class android.widget.AbsSpinner
From class android.widget.AdapterView
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
From interface android.widget.AbsListView.RecyclerListener
From interface com.droidux.pack.gallery.interfaces.GalleryFlowInterfaces.GalleryFlowViewInterface

XML Attributes

dux_cellSpacing

Since: API Level

Specifies the spacing between cells. The actual spacing will also depends on the padding of the selector drawable, if any.

Related Methods

dux_selectorDrawable

Since: API Level

Reference to a drawable resource to use for a selector.

Must be a reference to another resource, in the form "@[+][package:]type:name" or to a theme attribute in the form "?[package:][type:]name".

Related Methods

dux_wallHeight

Since: API Level

Specifies the height (number of cells in the vertical direction) of the 'wall' in a com.droidux.widget.gallery.GalleryFlowWall widget.

Related Methods

Public Constructors

public GalleryFlowWall (Context context)

Since: API Level 2.5

public GalleryFlowWall (Context context, AttributeSet attrs)

Since: API Level 2.5

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

Since: API Level 2.5

Public Methods

public GalleryFlowInterfaces.Wall.OnCellClickListener getOnCellClickListener ()

Since: API Level 2.5

public int getWallHeight ()

Since: API Level 2.5

public boolean onDown (MotionEvent e)

Since: API Level

Notified when a tap occurs with the down MotionEvent that triggered it. This will be triggered immediately for every down event. All other events should be preceded by this.

Parameters
e The down motion event.

public boolean onScroll (MotionEvent e1, MotionEvent e2, float distanceX, float distanceY)

Since: API Level

Notified when a scroll occurs with the initial on down MotionEvent and the current move MotionEvent. The distance in x and y is also supplied for convenience.

Parameters
e1 The first down motion event that started the scrolling.
e2 The move motion event that triggered the current onScroll.
distanceX The distance along the X axis that has been scrolled since the last call to onScroll. This is NOT the distance between e1 and e2.
distanceY The distance along the Y axis that has been scrolled since the last call to onScroll. This is NOT the distance between e1 and e2.
Returns
  • true if the event is consumed, else false

public boolean onSingleTapUp (MotionEvent e)

Since: API Level

Notified when a tap occurs with the up MotionEvent that triggered it.

Parameters
e The up motion event that completed the first tap
Returns
  • true if the event is consumed, else false

public boolean onTouchEvent (MotionEvent event)

Since: API Level

Implement this method to handle touch screen motion events.

If this method is used to detect click actions, it is recommended that the actions be performed by implementing and calling performClick(). This will ensure consistent system behavior, including:

  • obeying click sound preferences
  • dispatching OnClickListener calls
  • handling ACTION_CLICK when accessibility features are enabled

Parameters
event The motion event.
Returns
  • True if the event was handled, false otherwise.

public void setAdapter (SpinnerAdapter adapter)

Since: API Level

The Adapter is used to provide the data which backs this Spinner. It also provides methods to transform spinner items based on their position relative to the selected item.

Parameters
adapter The SpinnerAdapter to use for this Spinner

public void setOnCellClickListener (GalleryFlowInterfaces.Wall.OnCellClickListener listener)

Since: API Level 2.5

public void setWallHeight (int wallHeight)

Since: API Level 2.5

Protected Methods

protected void detachViewsFromParent (int start, int count)

Since: API Level

Detaches a range of views from their parents. Detaching a view should be followed either by a call to attachViewToParent(View, int, android.view.ViewGroup.LayoutParams) or a call to removeDetachedView(View, boolean). Detachment should only be temporary; reattachment or removal should happen within the same drawing cycle as detachment. When a view is detached, its parent is null and cannot be retrieved by a call to getChildAt(int).

Parameters
start the first index of the childrend range to detach
count the number of children to detach

protected void onDetachedFromWindow ()

Since: API Level

This is called when the view is detached from a window. At this point it no longer has a surface for drawing.

protected void removeDetachedView (View child, boolean animate)

Since: API Level

Finishes the removal of a detached view. This method will dispatch the detached from window event and notify the hierarchy change listener.

This method is intended to be lightweight and makes no assumptions about whether the parent or child should be redrawn. Proper use of this method will include also making any appropriate requestLayout() or invalidate() calls. For example, callers can post a Runnable which performs a requestLayout() on the next frame, after all detach/remove calls are finished, causing layout to be run prior to redrawing the view hierarchy.

Parameters
child the child to be definitely removed from the view hierarchy
animate if true and the view has an animation, the view is placed in the disappearing views list, otherwise, it is detached from the window