P phukol Active Member Licensed User Longtime User Feb 11, 2016 #1 Hi guys, just want to ask how i can go about in displaying a progressbar or progress circle inside an imageview that is to be filled up by an imagedownloader. I want the progressbar to show up until the image has been downloaded.
Hi guys, just want to ask how i can go about in displaying a progressbar or progress circle inside an imageview that is to be filled up by an imagedownloader. I want the progressbar to show up until the image has been downloaded.
Erel B4X founder Staff member Licensed User Longtime User Feb 11, 2016 #2 Check the attached example. B4A v5.80 (non-beta) includes a new View.Parent property. You can replace it with: B4X: Dim jo As JavaObject = iv Dim parent As Panel = jo.RunMethod("getParent", Null)) Attachments ImageDownloaderWithProgressBar.zip 8.5 KB · Views: 365 Upvote 0
Check the attached example. B4A v5.80 (non-beta) includes a new View.Parent property. You can replace it with: B4X: Dim jo As JavaObject = iv Dim parent As Panel = jo.RunMethod("getParent", Null))
P phukol Active Member Licensed User Longtime User Feb 11, 2016 #3 Thanks Master, Sensei, Guro, Teacher Erel! When can we expect the release of b4a 5.8? Upvote 0
Douglas Farias Expert Licensed User Longtime User Feb 22, 2016 #5 thx for this code @Erel this is a good option to add on imagedownloader original post and on line 44 change parent.AddView(pb, iv.Left, iv.Top, iv.Width, iv.Height) Click to expand... to parent.AddView(pb, parent.Width / 2 -35dip, parent.Height / 2 -35dip, 70dip, 70dip) Click to expand... to fix the progressbar on center and with good size Upvote 0
thx for this code @Erel this is a good option to add on imagedownloader original post and on line 44 change parent.AddView(pb, iv.Left, iv.Top, iv.Width, iv.Height) Click to expand... to parent.AddView(pb, parent.Width / 2 -35dip, parent.Height / 2 -35dip, 70dip, 70dip) Click to expand... to fix the progressbar on center and with good size