Hi,Ive just updated my app and my listview of addresses is only showing one address not a list, I hadnt changed anything to make this look different, it looks asif the listview size is set too small.
Thinking id somehow accidentally changed something I checked an older version and its listview was also not showing correctly.
I then imported a saved version (aia) saved back in July from my PC, built an apk and installed it on my phone, the result was the same but it was fine when saved back in July....
Any ideas what could be causing this ?
Your issue is possibly due to the unannounced update to nb199 and the new companion app - 2.73/2.73u. There are some changes to the listview component. You should check these against your existing listview settings.
Yes I see that there was an update 17/11/24 -
I wasnt using the companion, I built an apk and installed it on my phone instead.
The mention of changes to listview "Implement βhintβ property for the ListView component and generally improve its performance." dont give any clues as to how to rectify the issue ?
Replacing deleting the listview in my app to replace it with a new one from the shelf could possibly solve the problem, but its quite a job to do that.
Am I the only one seeing this issue ?
How were you constructing the data for your listview? None of these parts of the listview component have changed, as far as I can see. What are your settings in Designer and Blocks for generating elements and the underlying list for the listview?
this should not be necessary
It is a list of addresses downloaded from the web, the app i have on my phone still works just fine.
My phone is the same version as the saved aia version that I imported and built the apk from which is not working.
When the aia was saved it was working fine but for some reason after building the apk it no longer does, though the app on my phone can still accesses and displays the data correctly.
OK, this is a game of show and tell...
How is your list height set? Automatic, pixels, fill parent, or percentage? It would be best if you provided us with a project that demonstrates this problem.
The code.appinventor.mit.edu server is not updated yet, so you can upload the project there and test it.
Just tried the same July aia on the server that hasnt been updated and the app and listbox are perfect in an apk built on there.
My list view height was set to automatic.
I just built a sample project with a ListView with the height set to automatic and all the items in the ListView are visible. When there are a lot of them the ListView stretches to the entire screen. So I don't see the problem. To help you, please provide a sample project that shows this problem so we can investigate what is causing it.
There can always be some specific use of ListView, in some special conditions that we cannot predict, so only showing it in the project will be helpful.
It appears all to be something to do with the changes to listview.
Horizontal and vertical orientation have been flipped.
Problems with background colour, quality of transparent background is awful, showing shadows.
There also seem to be some issues with component orientation / placeholders.
Maybe non of these issues are relevant to listviews created within the newly updated environment but they do seem to be an issue with my saved projects where listview was created and saved prior to the update.
Also now when trying display markers on a map i get " android.widget.LinearLayout cannot be cast to androidx.recyclerview.widget.RecyclerView"
I created a project on the code server, in nb 198. Then I uploaded it to the updated nb199 server. I set the element color to the same as the background color. The list view did not change orientation or size. Yes, I see that when we set the element or selection color to transparent, some shadow appears, I will investigate this.
Also see shadows if Background Colour set to None and Element Colour set to a colour, with settings for rounded corners and margins in place. (this should probably be in the other topic...)
This doesnt happen if i build the apk with the non-updated server.
Are you using the ListViewPlus extension?
This extension is not compatible with the new ListView. It requires an update. That's probably why you have problems with the appearance of ListView. That's why I told you to share your project because we are not here to guess how you use ListView in your project.
BackgroundColor = none
ElementColor = any color
CornerRadius = 50 or any
Margins = 30 or any
I don't see shadows on the element.
listviewplus was only used for the map marker selection not the main app, listview in the main app have appearance issues .
I think I'll update this extension tomorrow. I have it ready but I'm thinking about small changes. Until then, hold off on updating or use the code server. You just have to import keys from the regular server there.
Send me your project in a private message, I won't share it with anyone. I'll see your use case. If the extension causes an error somewhere, then the application loading is stopped and some UI elements may not load correctly. Remove the extension temporarily and then see.
Are you using a transparent selection color or transparent background?