Mar 25, 2013 Replies: 217 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 PhotoFlow Events: ItemClick (Position As Int, Value As Object) ItemLongClick (Position As Int, Value As Object) ItemSelected (Position As Int, Value As Object) Methods: 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) Permissions: android.permission.WRITE_EXTERNAL_STORAGE Properties: 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 coverflow.jpg 83.8 KB · Views: 3,024 coverflow2.jpg 81.1 KB · Views: 2,847 CoverFlow with Text.jpg 115.6 KB · Views: 2,121 B4ACoverFlow v.1.70.zip B4ACoverFlow v.1.70.zip 36.2 KB · Views: 952 B4ACoverFlow v.1.80.zip B4ACoverFlow v.1.80.zip 40.2 KB · Views: 968 B4ACoverFlow v2.0 fix.zip B4ACoverFlow v2.0 fix.zip 40.6 KB · Views: 1,596 Last edited: Mar 30, 2014 Click to expand...
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 PhotoFlow Events: ItemClick (Position As Int, Value As Object) ItemLongClick (Position As Int, Value As Object) ItemSelected (Position As Int, Value As Object) Methods: 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) Permissions: android.permission.WRITE_EXTERNAL_STORAGE Properties: 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
R rboeck Well-Known Member Licensed User Longtime User Mar 26, 2013 #21 Hi lonelystar, first of all many thanks for this very usefull library; i integrated it in my next app in few minutes. But what i am looking for is, how to use Setlayout; i have tried out, but can you explain how to use. My second question or wish: on my tablet the shadowing effect is a little to strong and also uses 30 % of the height of the original picture. Is there a possibility to reduce the size or the brightness of this effect? Greetings from austria Reinhard
Hi lonelystar, first of all many thanks for this very usefull library; i integrated it in my next app in few minutes. But what i am looking for is, how to use Setlayout; i have tried out, but can you explain how to use. My second question or wish: on my tablet the shadowing effect is a little to strong and also uses 30 % of the height of the original picture. Is there a possibility to reduce the size or the brightness of this effect? Greetings from austria Reinhard
lonleystar Well-Known Member Licensed User Longtime User Mar 26, 2013 #22 rboeck said: Hi lonelystar, first of all many thanks for this very usefull library; i integrated it in my next app in few minutes. But what i am looking for is, how to use Setlayout; i have tried out, but can you explain how to use. My second question or wish: on my tablet the shadowing effect is a little to strong and also uses 30 % of the height of the original picture. Is there a possibility to reduce the size or the brightness of this effect? Greetings from austria Reinhard Click to expand... hi rboeck, thanks to you to choosen it. For first question I think u have to use for example: Coverflow.SetLayout(0,100,500,200) for the second question post a picture so I can understand better.
rboeck said: Hi lonelystar, first of all many thanks for this very usefull library; i integrated it in my next app in few minutes. But what i am looking for is, how to use Setlayout; i have tried out, but can you explain how to use. My second question or wish: on my tablet the shadowing effect is a little to strong and also uses 30 % of the height of the original picture. Is there a possibility to reduce the size or the brightness of this effect? Greetings from austria Reinhard Click to expand... hi rboeck, thanks to you to choosen it. For first question I think u have to use for example: Coverflow.SetLayout(0,100,500,200) for the second question post a picture so I can understand better.
R rboeck Well-Known Member Licensed User Longtime User Mar 26, 2013 #23 Hi, my problems: i did not find the right parameters, to place the pictures in such style, that the ratio is correct. In this picture everything is more wide than in reality and the user has problems to see, where the picture ends and the shadow effect begins. Maybe this would be better, if the shadow would be darker.. I placed the picture on dropbox with this link: https://www.dropbox.com/s/3g94itw4cbe8vlt/Screenshot_2013-03-26-16-50-23.jpg Greetings Reinhard
Hi, my problems: i did not find the right parameters, to place the pictures in such style, that the ratio is correct. In this picture everything is more wide than in reality and the user has problems to see, where the picture ends and the shadow effect begins. Maybe this would be better, if the shadow would be darker.. I placed the picture on dropbox with this link: https://www.dropbox.com/s/3g94itw4cbe8vlt/Screenshot_2013-03-26-16-50-23.jpg Greetings Reinhard
lonleystar Well-Known Member Licensed User Longtime User Mar 26, 2013 #24 rboeck said: Hi, my problems: i did not find the right parameters, to place the pictures in such style, that the ratio is correct. In this picture everything is more wide than in reality and the user has problems to see, where the picture ends and the shadow effect begins. Maybe this would be better, if the shadow would be darker.. I placed the picture on dropbox with this link: https://www.dropbox.com/s/3g94itw4cbe8vlt/Screenshot_2013-03-26-16-50-23.jpg Greetings Reinhard Click to expand... Hi Reinhard, meinst du das spiegeleffekt am boden den Bildes? wenn ja , das soll so sain.Aber ich werde ein kontrol hinzufügen, wo man es benutzen kann oder auch nicht.
rboeck said: Hi, my problems: i did not find the right parameters, to place the pictures in such style, that the ratio is correct. In this picture everything is more wide than in reality and the user has problems to see, where the picture ends and the shadow effect begins. Maybe this would be better, if the shadow would be darker.. I placed the picture on dropbox with this link: https://www.dropbox.com/s/3g94itw4cbe8vlt/Screenshot_2013-03-26-16-50-23.jpg Greetings Reinhard Click to expand... Hi Reinhard, meinst du das spiegeleffekt am boden den Bildes? wenn ja , das soll so sain.Aber ich werde ein kontrol hinzufügen, wo man es benutzen kann oder auch nicht.
R rboeck Well-Known Member Licensed User Longtime User Mar 26, 2013 #25 Genau, der Eindruck des Spiegelbildes ist bei mir zu intensiv, so dass es schon etwas zu einer Verwirrung führen könnte. Eine Abdunkelung oder Verkleinerung könnte auch das Problem lösen. Die Proportionen des Bildes kann ich auch irgendwie beeinflussen? Reinhard
Genau, der Eindruck des Spiegelbildes ist bei mir zu intensiv, so dass es schon etwas zu einer Verwirrung führen könnte. Eine Abdunkelung oder Verkleinerung könnte auch das Problem lösen. Die Proportionen des Bildes kann ich auch irgendwie beeinflussen? Reinhard
lonleystar Well-Known Member Licensed User Longtime User Mar 26, 2013 #26 rboeck said: Genau, der Eindruck des Spiegelbildes ist bei mir zu intensiv, so dass es schon etwas zu einer Verwirrung führen könnte. Eine Abdunkelung oder Verkleinerung könnte auch das Problem lösen. Die Proportionen des Bildes kann ich auch irgendwie beeinflussen? Reinhard Click to expand... Das mit dem Spiegelbild werde ich aendern. wegen proportionen kannst du mir deinen code senden? ich will was schauen. -sorry fuer meine deutsch. Ich lerne seit 4 Monaten erst deutsch. download the fixed library. Last edited: Mar 26, 2013
rboeck said: Genau, der Eindruck des Spiegelbildes ist bei mir zu intensiv, so dass es schon etwas zu einer Verwirrung führen könnte. Eine Abdunkelung oder Verkleinerung könnte auch das Problem lösen. Die Proportionen des Bildes kann ich auch irgendwie beeinflussen? Reinhard Click to expand... Das mit dem Spiegelbild werde ich aendern. wegen proportionen kannst du mir deinen code senden? ich will was schauen. -sorry fuer meine deutsch. Ich lerne seit 4 Monaten erst deutsch. download the fixed library.
R rboeck Well-Known Member Licensed User Longtime User Mar 26, 2013 #27 Es ist ein nur leicht verändertes, an ein Fullscreen Tablet angepasstes Programm. Attachments Coverflow_rb.zip Coverflow_rb.zip 10.1 KB · Views: 502
Informatix Expert Licensed User Longtime User Mar 26, 2013 #28 It's a bit difficult to understand you, guys. My german is a bit rusty...
R rboeck Well-Known Member Licensed User Longtime User Mar 27, 2013 #29 Sorry for the understanding problems; i will try to translate the conversation to english. #24 Do you mean the mirroring at the bottom of the picture? If yes, it is planned in this manner. But i will add a control to switch this on or off. #25 Exactly, but for me the mirroring picture is to large or to bright or to intense, so the user have to look twice, where the picture stop's and the mirror effect begins. Is it possible, to set parameters to make the correct wide to heigth relation of the photos. #26 I will change the mirroring effect. For the proportion of the pictures can you send me your code? Sorry for my german, i only learn german for four month. #27 Its the originial coverflow program, only in fullscreen mode an adapted for tablet size. Hope, this helps! Your german is much, much better than my french. Greetings Reinhard
Sorry for the understanding problems; i will try to translate the conversation to english. #24 Do you mean the mirroring at the bottom of the picture? If yes, it is planned in this manner. But i will add a control to switch this on or off. #25 Exactly, but for me the mirroring picture is to large or to bright or to intense, so the user have to look twice, where the picture stop's and the mirror effect begins. Is it possible, to set parameters to make the correct wide to heigth relation of the photos. #26 I will change the mirroring effect. For the proportion of the pictures can you send me your code? Sorry for my german, i only learn german for four month. #27 Its the originial coverflow program, only in fullscreen mode an adapted for tablet size. Hope, this helps! Your german is much, much better than my french. Greetings Reinhard
lonleystar Well-Known Member Licensed User Longtime User Mar 27, 2013 #31 Informatix said: Thank you for the translation. Click to expand... Hi Informatix, Sorry if we wrote in Deutsch, since I now live in Germany and are now four months of intensive course, and for me it is a way to practice. now I'm mixing three languages Italian, English, and Deutsch. I have a little problem when i try to put my donation button in the signature doesnt display nothing ,I don't know where I'm wrong please can help me to write a little guide so i can put my own donation button in my signature? This help will be appreciated. Thanks in advance. Last edited: Mar 27, 2013
Informatix said: Thank you for the translation. Click to expand... Hi Informatix, Sorry if we wrote in Deutsch, since I now live in Germany and are now four months of intensive course, and for me it is a way to practice. now I'm mixing three languages Italian, English, and Deutsch. I have a little problem when i try to put my donation button in the signature doesnt display nothing ,I don't know where I'm wrong please can help me to write a little guide so i can put my own donation button in my signature? This help will be appreciated. Thanks in advance.
lonleystar Well-Known Member Licensed User Longtime User Mar 27, 2013 #33 NJDude said: lonleystar, check your email. Click to expand... Hi NJDude, Thank you very much for your help i´ll try it.
NJDude said: lonleystar, check your email. Click to expand... Hi NJDude, Thank you very much for your help i´ll try it.
margret Well-Known Member Licensed User Longtime User Mar 27, 2013 #34 Thanks for the Update!! It works Great..!
lonleystar Well-Known Member Licensed User Longtime User Mar 27, 2013 #35 margret said: Thanks for the Update!! It works Great..! Click to expand... Hi margret, Thank you for having reported.
margret said: Thanks for the Update!! It works Great..! Click to expand... Hi margret, Thank you for having reported.
S susu Well-Known Member Licensed User Longtime User Mar 28, 2013 #36 Hi Salvi, Could you please share your FileManager, AppInstalled, ColorPicher libraries? Of course, I'll donate for your great work
Hi Salvi, Could you please share your FileManager, AppInstalled, ColorPicher libraries? Of course, I'll donate for your great work
lonleystar Well-Known Member Licensed User Longtime User Mar 28, 2013 #37 susu said: Hi Salvi, Could you please share your FileManager, AppInstalled, ColorPicher libraries? Of course, I'll donate for your great work Click to expand... Hi susu, ofcours tomorrow i´ll put it in the forum. In it you can customize with your own icons, just respecting the names and of icons otherwise you'll get a file not found error, the size of the icons must be 64 x 64 ,that´s all.
susu said: Hi Salvi, Could you please share your FileManager, AppInstalled, ColorPicher libraries? Of course, I'll donate for your great work Click to expand... Hi susu, ofcours tomorrow i´ll put it in the forum. In it you can customize with your own icons, just respecting the names and of icons otherwise you'll get a file not found error, the size of the icons must be 64 x 64 ,that´s all.
Stulish Active Member Licensed User Longtime User Apr 9, 2013 #38 Hi i have just had a look at coverflow and it looks awesome, the only thing i did notice is that when you slightly move the center picture the side ones seem to jump around (this is on a Galaxy S3). But appart from that small thing its really nice looking A+
Hi i have just had a look at coverflow and it looks awesome, the only thing i did notice is that when you slightly move the center picture the side ones seem to jump around (this is on a Galaxy S3). But appart from that small thing its really nice looking A+
lonleystar Well-Known Member Licensed User Longtime User Apr 10, 2013 #39 Stulish said: Hi i have just had a look at coverflow and it looks awesome, the only thing i did notice is that when you slightly move the center picture the side ones seem to jump around (this is on a Galaxy S3). But appart from that small thing its really nice looking A+ Click to expand... Hi Stulish,it doesnt jump arround is an animation. Thanks for A+
Stulish said: Hi i have just had a look at coverflow and it looks awesome, the only thing i did notice is that when you slightly move the center picture the side ones seem to jump around (this is on a Galaxy S3). But appart from that small thing its really nice looking A+ Click to expand... Hi Stulish,it doesnt jump arround is an animation. Thanks for A+
lonleystar Well-Known Member Licensed User Longtime User Apr 19, 2013 #40 Hi rboeck, Vielen Dank, für deine Donation Thank You for your donation.