Hi,
For some reason, in version 2, if I change this line
From
Code:
Coverflow.CreateCache = "Pippo.Pluto.Paperino"
To
Code:
Coverflow.CreateCache = "a.b.c.d"
The CoverFlow plugin does not work.
Q. Is the Cache locked to "Pippo.Pluto.Paperino" or can someone use their own cache names?
Q. I have placed the CoverFlow inside a panel with....
Code:
pnlCoverFlow.AddView(Coverflow, 0dip, 0dip, 100%x, 100%y)
and did this also
Code:
Coverflow.ItemWidth = 50%x
Coverflow.ItemHeight = 100%y
because I was under the impression that each image will fit the panel size height. Unfortunately it does not. How can I ensure that each image fits perfectly (see attached images for clarity)
Q. Each image I am adding is currently sitting in the Assets folder and I am using AddImage method. I will not use all the images in the assets folder but some. The thing is, I have to call this method below for my code to even display in the emulator otherwise nothing happens. When this line is commented out, my app does not even run.
Code:
Coverflow.PopulatePhotoFlowFromAssets("a")
Is it possible to make this library to work without having to populate from assets but instead populate from a list of given files? I don't have a folder called "a" in assets and this methods is supposed to read that folder and display the images isn't it? Below is my complete source for this. Can someone please advise?
Code:
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
ProgressDialogShow("Loading...")
DoEvents
Activity.LoadLayout("vSplash")
Activity.Color = Colors.black
modMashiane.Button_PowderBlueWhite(btnLogin)
modMashiane.Button_PowderBlueWhite(cmdRegister)
StateManager.Initialize(Application.LabelName)
pnlCoverFlow.Color = Colors.transparent
Coverflow.InitializeCoverflow("Coverflow")
' if string below is changed to anything else other than Pippo.Pluto.Paperino
' nothing is displayed on coverflow
Coverflow.CreateCache = "Pippo.Pluto.Paperino"
pnlCoverFlow.AddView(Coverflow, 0dip, 0dip, 100%x, 100%y)
Coverflow.Spacing= -15
Coverflow.ItemWidth = 50%x
Coverflow.ItemHeight = 100%y
Coverflow.AnimationDuration=1000
' if this line is commented out, the app does start, there is no folder called "a" in assets
Coverflow.PopulatePhotoFlowFromAssets("a")
Coverflow.ShowText = False
Coverflow.AddImage(File.DirAssets,"slide1.jpg")
Coverflow.AddImage(File.DirAssets,"slide2.jpg")
Coverflow.AddImage(File.DirAssets,"slide3.jpg")
Coverflow.AddImage(File.DirAssets,"slide4.jpg")
Coverflow.AddImage(File.DirAssets,"slide5.jpg")
Coverflow.AddImage(File.DirAssets,"slide6.jpg")
Coverflow.AddImage(File.DirAssets,"slide7.jpg")
Coverflow.AddImage(File.DirAssets,"slide8.jpg")
Coverflow.AddImage(File.DirAssets,"slide9.jpg")
Coverflow.AddImage(File.DirAssets,"slide10.jpg")
Coverflow.AddImage(File.DirAssets,"slide11.jpg")
Coverflow.AddImage(File.DirAssets,"slide12.jpg")
Coverflow.AddImage(File.DirAssets,"slide13.jpg")
Coverflow.AddImage(File.DirAssets,"slide14.jpg")
Coverflow.Selection = 1
ProgressDialogHide
End Sub