listview/checkbox behavior Android vs. Windows and possible Solutions

Discuss GUI programming with the RapaGUI plugin here
Post Reply
gerograph
Posts: 56
Joined: Thu Mar 04, 2010 9:38 pm

listview/checkbox behavior Android vs. Windows and possible Solutions

Post 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 ;-)
User avatar
airsoftsoftwair
Posts: 5830
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

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

Post 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.
gerograph
Posts: 56
Joined: Thu Mar 04, 2010 9:38 pm

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

Post 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...
gerograph
Posts: 56
Joined: Thu Mar 04, 2010 9:38 pm

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

Post 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...
User avatar
airsoftsoftwair
Posts: 5830
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

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

Post 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.
Post Reply