Double Click implementation

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
townsend
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 430
Joined: Sun Feb 13, 2011 8:43 pm
Location: Seattle, USA

Double Click implementation

Post by townsend » Wed Jun 29, 2011 5:02 pm

My app is still a long way from deployment, but I have a concern about the user interface.

If I use the double click Message-- mouseDoubleUp-- how will that work in the Android environment?

If a user simply holds their finger down on a particular DataGrid cell, will that register as a double click?

webmaster
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 81
Joined: Mon May 09, 2011 3:01 pm

Re: Double Click implementation

Post by webmaster » Wed Jun 29, 2011 8:21 pm

Hi. Just did a quick test of "mouseDoubleUp" on my Andriod phone. No, click and hold does not trigger it. The user must double tap the same control because LiveCode is sensing the removal of the finger as one mouseUp. Two finder removals within a short period of time is a double-click.

I'm curious what you're desired outcome is that requires a double-click rather than single-click (mouseUp)? Double tap seems to be fairly rarely used in mobile / touch-based applications. Maybe you could use just mouseUp or combine it with an "answer" dialog in order to confirm the user wants to perform that action.

--ForrestD

townsend
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 430
Joined: Sun Feb 13, 2011 8:43 pm
Location: Seattle, USA

Re: Double Click implementation

Post by townsend » Wed Jun 29, 2011 8:58 pm

Thanks Forest-- I appreciate you running that test for me.

I've got a DataGrid. Due the the small screen, not all fields fit, so I have some fields designated as hidden. They're there. They just don't appear in the DataGrid. When the user single clicks on any line, the hidden fields are displayed outside of the DataGrid area.

This works well, but then there the problem of how to allow the user to edit the value of a single cell.
Here are my choices:

1- Open up a whole new card to display all editable fields in a form.
2- Double click on a cell, to do in-cell editing.
3- Double click on a cell, and present the user with an Ask dialog.

I would guess anyone who wants to allow the user to edit a DataGrid would be faced with the same choices. I'm inclined to go with the in-cell editing to start, then move to the Ask dialog, if an exit from the in-cell editor become problematic.

Post Reply

Return to “Android Deployment”