Hi, I have a few questions regarding the use of images in the new data viewer list:
Is there a way to have a data viewer list with only images and no title text? Ie. Not even have spaces for blank text, just a list of successive images.
When I load png images with a transparent background, I’m seeing the system automatically fills in a grey background. How do I preserve the transparency?
Is there a resize option for listviewer images? As of now, when I change the listviewer size there’s a danger the image gets cropped. But at the same time if I edit the image itself to be an absolute size, I’m afraid that it won’t preserve its look across different sized devices. How should I deal with this?
So, I’ve been looking at your custom listviewer and I think I get the concept - that essentially you’re creating an image with associated title, url etc and putting a button on top of it that’s clickable. And then cloning that for however many items you want in the list.
My question is then when coding with it, how to best specify what happens when the user makes a selection? Here’s the concern - The standard listviewer has an ‘item’ output that recognizes which item was clicked and it can be used in a function accordingly, so you have one block with “when ‘listviewer’ ‘item click’, do X”. Now if instead there are multiple items in a custom list and each one has its own button, does that mean you need many blocks - one for each item (button) to specify what happens when the user clicks that particular item (button)?
And for the image transparency question, I was actually referring to images used in the listviewer too =) Right now I have PNGs stored in cloudinary which have a transparent background. The data viewer list can extract them from their URLs, but then adds a standard grey background to each one. And since there’s no ‘background colour’ option for those images, I’m not sure how to specify the transparency.
Hey @jared. So, I’ve incorporated a simplified version of your listviewer (just images with no text) in my app, but I’m running into a problem. Wondering if you had any advice.
I populate the listviewer upon initialization, and the issue is half the time it loads perfectly and the other half of the time the images just don’t appear. If I then restart the app it’d work fine (or not). I can’t seem to find any pattern governing when it works and when it doesn’t.
Are there some areas I should look into in order to troubleshoot something like this?