Well, I would like to change the images after the app is released as well. For example on Christmas I would like to update my gallery with Christmas themed backgrounds for everybody, because of that I am using Google Sheets.
Hi again @skulamester ,
The first thing that came to my mind that could speed up the process is that you could use local db, for example, you use your google sheets, then get sort of download all the links(copy them) into the local db. I was also of data viewer grid, because that is reasonably fast but i am not sure if you could use that sort of pattern, although there is custom data viewer layout but i am not familiar with that.
You’re connecting to your Google Sheet every time you display an image. So if you have 30 images, that’s 30 separate connections. You need to avoid that.
Also, I’m doing something similar in my Photo Journal app. One way I speed things up is by hiding and showing components instead of cloning and removing them. If it makes sense to do it that way, you can create all of the components manually in the screen and then just hide the ones that would be blank (that are beyond the index of the gallery length). That may speed things up, too. It’s a major change to your project so I would only undertake it after you’ve eliminated other things that might be slowing it down.
I use the “seconds since 1970” block in the Device drawer to time how long certain parts of my project take to run. See this post:
You can “bookend” sections of your blocks and then make minor changes (e.g. remove a block) to see how it affects the timing.
I was trying to use Images instead of Buttons in the Gallery.
On the one hand it seems to be a solution, as it caches the images and they load faster next time the user opens the screen.
On the other hand, I am unable to clone an Image with a border. After cloning the Image has 0px border, which leads to an ugly design.
So that’s an interesting bug. When I remove the “when image 1 click” block, everything looks great. When it’s present, the image becomes square (corners not rounded) and sits on top of the curved border.
I think @tatiang’s suggestion to switch to a button is a good one, if there aren’t other functions you need that require it to be an image. Another option would be to keep it as an image but to overlay a transparent square on top of it, and respond to clicks on THAT. If you want help setting that up, let me know.
Do you want to file a bug report on GitHub? This is certainly a bug.
I’m not seeing this - when I clone an image with a border, the border still shows up. I /do/ see problems with border parameter not copying over when I use the duplicate button in designer, but not here.
There seems to be a problem with image positioning. I replaced the Dropbox image with one from my computer and I see this with Picture Resize Mode set to “contain” (the orange background is a background color I selected):