Page 1 of 1

listview/checkbox behavior Android vs. Windows and possible Solutions

Posted: Thu Oct 09, 2025 12:02 pm
by gerograph
I have got a muli column listview and activated "checkbox" for the first column in order to have a "Todo List". Behavior is like expected on Windows/Amiga:
  • the "clicked" line is activated, regardless of my chekbox status (as long as I donnot click the first column) ...
  • Data can then be read from "active" listviewitem....
=> checkbox can be triggered sort of independently [/list]

On Android it is a bit different, and not realy what I want:
  • the "clicked" line is activated, the checkbox will be triggered regardless of the column I clicked...
  • Data can then be read from "active" listviewitem, however checkbox status has changed by then...
=> checkbox always triggers, when you click on a listview line

Any ideas, how to get the same Amiga/Windows behavior on Android? Or a workaround? tried using an Icon column instead of checkbox...however does not realy work..somehow. But there might be some better ideas around?

Other than that, my progress on my current todo list project works out well, and I am getting closer ;-)

Re: listview/checkbox behavior Android vs. Windows and possible Solutions

Posted: Sat Oct 11, 2025 2:22 pm
by airsoftsoftwair
gerograph wrote: Thu Oct 09, 2025 12:02 pm Any ideas, how to get the same Amiga/Windows behavior on Android? Or a workaround? tried using an Icon column instead of checkbox...however does not realy work..somehow. But there might be some better ideas around?
It's probably difficult. I'll see if I can fix this in RapaGUI but I'm not sure if it's possible because the touch interface is often very different to standard desktop APIs.

Re: listview/checkbox behavior Android vs. Windows and possible Solutions

Posted: Sat Oct 11, 2025 7:07 pm
by gerograph
Did not try with a proper apk, just via Android hollywood player. However, I might try an "Icon" column and hope that I can get hold of Column number as well as active item through notify...which works on windows at least. That might be a workaround...

Re: listview/checkbox behavior Android vs. Windows and possible Solutions

Posted: Sat Oct 25, 2025 7:03 pm
by gerograph
Well, this seems to be more of a general problem....

Check out my Android Version/applet vs.the windows or amiga version:
viewtopic.php?p=22415#p22415

An AmigaOS or Windows listview differs between a selected item and a checked checkbox. Whereas Android can not select items without checking the checkbox...this means: an selected listview item on android always has to be "checked" (vs. highlighted in Windows or Amiga listview). This fact causes by the way quiet a few crashes inside my app, when using it on Android. Unless you donnot have another idea, I have to do a workaround for android version...

Re: listview/checkbox behavior Android vs. Windows and possible Solutions

Posted: Mon Nov 03, 2025 5:25 pm
by airsoftsoftwair
I'm afraid there's probably no way around implementing a different logic between Android and the desktop platforms on your end because what you're seeing is how Android's listview widget behaves. I don't think it's possible to impose a different logic onto it.