Android Programming Press on the image to return to the main documentation page.

B4ACoverFlow

Written by Giuseppe Salvi

List of types:

PhotoFlow

PhotoFlow


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Permissions:

android.permission.WRITE_EXTERNAL_STORAGE

Events:

ItemClick (Position As Int, Value As Object)
ItemLongClick (Position As Int, Value As Object)
ItemSelected(Position As Int, Value As Object)

Members:


  AddImage (Dir As String, FileName As String)

  AddImageAt (index As Int, Dir As String, FileName As String)

  AnimationDuration As Int [write only]

  Background As android.graphics.drawable.Drawable

  BringToFront

  Carousel As Boolean [write only]

  ClearCache

  Color As Int [write only]

  CreateCache As String [write only]

  Enabled As Boolean

  FadingEdgeLength As Int [write only]

  GetItem (position As Int) As String

  Height As Int

  InitializeCarousel (EventName As String)

  InitializeCoverflow (EventName As String)

  Invalidate

  Invalidate2 (arg0 As android.graphics.Rect)

  Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)

  IsInitialized As Boolean

  ItemHeight As Int

  ItemWidth As Int

  Left As Int

  Length As Int [read only]

  PopulateCoverflow (dir As String, path As String)

  RemoveView

  RequestFocus As Boolean

  Reverse As Boolean [write only]

  Selection As Int [write only]

  SendToBack

  SetBackgroundImage (arg0 As android.graphics.Bitmap)

  SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)

  ShowText As Boolean

  Spacing As Int [write only]

  Tag As Object

  TextColor As Int

  TextSize As Int

  Top As Int

  Version As String [read only]

  Visible As Boolean

  Width As Int

Members description:

AddImage (Dir As String, FileName As String)
Add an image at the end of the PhotoFlow from sdcard or AssetsDir

Example:

PhotoFlow.AddImage(File.DirRootExternal,"a.jpg")
AddImageAt (index As Int, Dir As String, FileName As String)
Add an image to the desired position in the PhotoFlow from sdcard or AssetsDir

Example:

PhotoFlow.AddImage(1,File.DirRootExternal,"a.jpg")
AnimationDuration As Int [write only]
Sets how long the transition animation should run when a child view changes position.
Background As android.graphics.drawable.Drawable
BringToFront
Carousel As Boolean [write only]
Set as Carousel
ClearCache
Delete entire disk and memory cache created before
Color As Int [write only]
CreateCache As String [write only]
Sets the name of your own cache

Examples:

PhotoFlow.CreateCache = "Your cache Name Here")

It'll create a cache in "Android/data/Your cache name/cache/.thumbs" in to SdCard
Enabled As Boolean
FadingEdgeLength As Int [write only]
Set the size of the faded edge used to indicate that more content in this view is available.
GetItem (position As Int) As String
Returns Item

Example:

i.Bitmap=LoadBitmap("",PhotoFlow.GetItem(Position))
Height As Int
InitializeCarousel (EventName As String)
Initialize the Carousel
InitializeCoverflow (EventName As String)
Initialize the PhotoFlow
Invalidate
Invalidate2 (arg0 As android.graphics.Rect)
Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
IsInitialized As Boolean
ItemHeight As Int
Get or Set ItemHeight
ItemWidth As Int
Get or Sets ItemWidth
Left As Int
Length As Int [read only]
Returns lenght
PopulateCoverflow (dir As String, path As String)
Populate CoverFlow From SdCard

Examples:

PhotoFlow.PopulateCoverFlow(File.DirRootExternal,"Your FolderName Here")
RemoveView
RequestFocus As Boolean
Reverse As Boolean [write only]
Set reverse
Selection As Int [write only]
Jump directly to a specific item in the adapter data.
SendToBack
SetBackgroundImage (arg0 As android.graphics.Bitmap)
SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
ShowText As Boolean
Get or Sets the visibility of the text - by default is hide
Spacing As Int [write only]
Sets the spacing between items in a Gallery
Tag As Object
TextColor As Int
Get or Sets Text Color - by default is White
TextSize As Int
Get or Sets Text size
Top As Int
Version As String [read only]
Return Author and Version of this library
Visible As Boolean
Width As Int

Top