Hi guys, as I have promised, CoverFlow is here.
Download the Coverflow.zip
The zip contains the library and an example that´s all
The CoverFlow Class = Neil Davies
B4ACoverFlow
Author: Giuseppe Salvi
Version: 2
Download the Coverflow.zip
The zip contains the library and an example that´s all
The CoverFlow Class = Neil Davies
B4ACoverFlow
Author: Giuseppe Salvi
Version: 2
- PhotoFlow
Events:- ItemClick (Position As Int, Value As Object)
- ItemLongClick (Position As Int, Value As Object)
- ItemSelected (Position As Int, Value As Object)
- 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") - BringToFront
- ClearCache
Delete entire disk and memory cache created before - GetImageListFromAssets (path As String) As List
Get entire list of images stored in assets folder
Examples:
Dim lv as ListView
Dim l as list
l.Initialize
lv.Initialize("lv")
Sub Menu_Click
Activity.AddView(lv,0,0,100%x,100%y)
l = Coverflow.GetImageListFromAssets("Here the Images path u've in assets")
For n = 0 To l.Size-1
lv.AddSingleLine(l.Get(n))
next
End Sub - GetItem (position As Int) As String
Returns Item
Example:
i.Bitmap=LoadBitmap("",PhotoFlow.GetItem(Position)) - InitializeCarousel (EventName As String)
Initialize the Carousel - InitializeCoverflow (EventName As String)
Initialize the PhotoFlow - IsInitialized As Boolean
- PopulatePhotoFlow (dir As String, path As String)
Populate PhotoFlow from sdcard not from assets - PopulatePhotoFlowFromAssets (path As String)
Populate CoverFlow from assets not from sdcard - RemoveView
- SendToBack
- SetBackgroundImage (arg0 As Bitmap)
- SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
- android.permission.WRITE_EXTERNAL_STORAGE
- AnimationDuration As Int [write only]
Sets how long the transition animation should run when a child view changes position. - Carousel As Boolean [write only]
Set as Carousel - 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. - Height As Int
- ItemHeight As Int
Get or Set ItemHeight - ItemWidth As Int
Get or Sets ItemWidth - Left As Int
- Length As Int [read only]
Returns lenght - Reverse As Boolean [write only]
Set reverse - Selection As Int [write only]
Jump directly to a specific item in the adapter data. - 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
Attachments
Last edited: