listview don't fill out the form at the bottom

sigster

Active Member
Licensed User
Longtime User
Hi hope someone can help me with this Please

the Listview don't fill out the form at the bottom
in the design editor I drag the listview down to the bottom
and it look like it is space for one record between bottom of the form and the listview

Regards
Sigster


B4X:
 For i = 0 To Cursor.RowCount - 1
    Dim tt As person1
         Cursor.Position = i
     tt.nafn=Cursor.GetString("nafn")
     tt.gsm=Cursor.GetString("simi")
     ListView1.AddTwoLines2 (tt.nafn,tt.gsm,tt)
    Next
 

klaus

Expert
Licensed User
Longtime User
Unfortunately you don't give enough information.
How many entries do you have in the listview.
Is the space you have in the emulator or on a device with a different size or density?
Couldn't you post your project as a zip file that would be the best way to help you.
Best regards.
 
Upvote 0

eps

Expert
Licensed User
Longtime User
It's probably a Designer issue... i.e. The ListView length is curtailed by the "owning" Panel or similar.. I would look there.

As klaus mentions, without any further detail or a screenshot, it's bit hard to help!!
 
Upvote 0

sigster

Active Member
Licensed User
Longtime User
This is sample where I read from database into Listview

the file is a RAR file I rename it to ZIP

Regards
Sigster
 
Upvote 0

sigster

Active Member
Licensed User
Longtime User
too easy this works !!

but I need to have it 90%y 100%y then one record is below the form

thanks for the help !

Regards
Sigster
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
I had a look at your project, in my emulator with the default Android size the ListView fills the whole screen.
As you haven't answered this question:
Is the space you have in the emulator or on a device with a different size or density?
I suspect the above.
Try the code below.

Best regards.
 

Attachments

  • sql2.zip
    4.9 KB · Views: 206
Upvote 0

sigster

Active Member
Licensed User
Longtime User
works better !! , thanks again

know I need to figure out the rest of the program
finish = to load the listview
finish = to dial if I click on the name

need to figure out how to check if I have new database online and download

AND uninstall Eclips !!! Basic4android rock !!


B4X:
ListView1.Height = 100%y - (flokkarspinn.Top + flokkarspinn.Height)

Regards
Siggi
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…