List View two row height while setting to Main Text Layout

Hello and nice meeting you all.
My name is George, I am sending this message from Greece.
I am 52, amateur with some knowledge, but not much.
I have made the simplest possible app, just a screen with a list view.
Entered manually comma separated values that in every row
mention a code and a description, eg. 123456 Product1 in Greek.
It is working properly and with the search function.
But every item shown takes two rows with the second one blank.
I have made some cosmetic modifications like colours etc but I have
chosen for sure "Main Text Layout" as seen in pictures.
While in MIT App Inventor seems fine, in my phone shows the problem.
Can you please tell me if this is an error from my side, a bug or something else?

Thank you :slight_smile:


(Canned Reply: ABG- Export & Upload .aia)
Export your .aia file and upload it here.

export_and_upload_aia

.

I note that your first list item does not have the empty line.

Show your csv data, or share it here as a file.

Sure, it has greek characters but here it is:

599209 ΚΑΡΠΟΥΖΙΕΡΑ,
1887116 ΚΑΛΑΘΟΥΝΕΣ,
2664316 ΜΠΛΕ ΠΑΛΕΤΕΣ,
3222213 ΤΕΛΑΡΑ ΠΡΑΣΙΝΑ,
3222221 ΤΕΛΑΡΑ ΚΟΚΚΙΝΑ,
3995719 ΨΕΥΔΟΠΑΛΕΤΕΣ,

I have also tried with an empty line as follows:
,
599209 ΚΑΡΠΟΥΖΙΕΡΑ,
1887116 ΚΑΛΑΘΟΥΝΕΣ,
2664316 ΜΠΛΕ ΠΑΛΕΤΕΣ,
3222213 ΤΕΛΑΡΑ ΠΡΑΣΙΝΑ,
3222221 ΤΕΛΑΡΑ ΚΟΚΚΙΝΑ,
3995719 ΨΕΥΔΟΠΑΛΕΤΕΣ,
but again there is the second line space.

Hello ABG, my apologies but I would prefer not to upload the whole .aia
I have succesfully added my coworkers personal details
and I do not have their approval to upload this data...

:slight_smile:

Well shall we see your blocks part? Did you add any logical part to parse the value into list view or used anyother logical seq?

Oh, I am sorry, I didn't mention, I have no blocks added.
Just a List view and a copy paste of the .csv values.
So, blocks screen is complete empty.
Here is the complete app,

Screenshot 2025-06-06 093614
Buttons do lead to another screen as follows:
"codes"
"codes2"
"people"
"exit"
There are actually not much of block work that I had to do.
People is just a data sensitive part and I do not upload images and details.
Everything works fine, except this double row thing in List View.

Allow me to explain that I would like to read more in time and replace
the List with a TinyDB object with add product options.
So if you think that it does not worth bothering for the issue it is ok,
it works even this way, including the "search list" option.
It is just aesthetic issue and some waste of screen space.

Thank you!

In such case, can you share your csv file (as it is matches with about said error)

Here I show two methods

listviewcsv.aia (2.7 KB)

1 Like

Ok now I get your question, by seeing the answer below.
I didn't use a .csv file by itself but entered manually the data
in Elements From String box of List View.

Thank you very much!
I will try those two ways and will be back to report the result!

There you are! So the problem is with you the method you follow. Just try the way as suggested by tim. It seems your enter key (supports multiline) was read by the block and throws the above said your design

May be trim text block may remove your entered text into listview may solve your problem, if i am correct

1 Like

Thank you both for replying, it was really helpful :slightly_smiling_face:
Yes both methods do work! (I deleted an unused block, hope it's ok)
I will study the blocks in order to understand the functions called.
There are so many possibilities building useful things here. Yet,
this app is exactly what I wanted to do. Everything is perfect now.

Have a great day!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.