Hide listview on android

Discuss GUI programming with the RapaGUI plugin here
Post Reply
amyren
Posts: 421
Joined: Thu May 02, 2019 11:53 am

Hide listview on android

Post by amyren »

I have this program that i similar to the Dialogs example just that I have two list (lv and lv2) and more buttons.
It is set up so there is a button row on top, then a title label, and the first listview
Below there another button row, a new titlelabel and then the second listview. At the bottom the third row of buttons.
This works well on Desktop systems like windows or MorpOS, but on Android the content gets quite cramped so I can hardly see the content of the lists due to the space the buttons and the labels. It helps to minimize zoom on android, but its a bit cumbersome to have to do this every time.

To adress this I added some menu options to hide any of these objects using eg. moai.Set("lv", "hide", 1)
This worked on Windows.
But on Android it works differently.
First thing I found is that although its does hide lists content it does not hide the column titles of the lists.
To work around this I added moai.set lines to hide each of these columns, so now that is taken care of.

Now I can hide the buttons, labels and the lists, and I can show just one of the lists on screen at the time. On windows the list content will now expand to fill the window so I can see many entries at once.
On Android this does not happen. The upper list will be restricted to the upper part of the screen even if the bottom is just empty space, and same for the second list that will be limited to a small lower part of the screen.

Is there anything I can do to make any of the lists use the available space on android as well?

Secondly, are these observations considered as bugs?
plouf
Posts: 680
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: Hide listview on android

Post by plouf »

i lost it :)

but if i understand correctly i will use Pageview , to create classic "tab style" panels like firefox etc
this is the most widely used method to organize thinks

if you provide and any example of "android not working good" to see :)
Christos
Post Reply