Page 1 of 1

Are there any sample android apps with native controls/menus

Posted: Tue Aug 09, 2011 3:16 am
by shawnb
Are there any Android apps with native controls/menus? If so can someone please provide a link?

Thank you in advance.


Shawn

Re: Are there any sample android apps with native controls/menus

Posted: Sat Sep 17, 2011 5:34 pm
by richervin
Ditto - just one working app that demonstrates the viability of creating LiveCode apps for the Android platform.

I may end up producing the first one, from the looks of things, and this my first attempt at mobile platform development.

So far, I have mobile list scrolling working and can launch an e-mail sender.

I

Re: Are there any sample android apps with native controls/menus

Posted: Sun Sep 18, 2011 2:09 am
by BarrySumpter
I've just been researching and trial and erroring for myself.
I placed a generic datagrid FORM (not table) on a generic card.
The dataGrid form properties match the androids menus for the android clock settings menu.
Font, row height, colour.
Headers and footers are rectangles.

I tried the table first but as already noted the gesture scroll for a table looks too clunky.

It took me about a week to get the scrolling and generic android menu features sorted.

hth

Re: Are there any sample android apps with native controls/menus

Posted: Mon Sep 19, 2011 9:18 am
by BarrySumpter
I've got the momentum scrolling working in winxp32.

But the Repeat until mouseClick
isn't working properly.
I think its getting a mouseClick from Android.
Anyone have a workaround or a way to clear the mouseClick?
Or should I be using something else?

Re: Are there any sample android apps with native controls/menus

Posted: Mon Sep 19, 2011 3:06 pm
by BarrySumpter

Code: Select all

Repeat
 if the mouse is down then exit repeat -- bail out

Re: Are there any sample android apps with native controls/menus

Posted: Mon Sep 19, 2011 3:39 pm
by richervin
I'm using the touchStart and touchEnd functionality. I haven't (yet) tried to get momentum scrolling working. It seems like you may be ahead of me on this one.

I got far enough to determine that it could be done, and am now moving on to e-mail and sqlite features.

I still have an open question in my mind about being able to detect selection of a form item while I am trapping scrolling gestures.

User should be able to:
Thumb drag the list up and down (I have this working)
Momentum scroll and stop the list (I can integrate this into my thumb-dragging code, I think, though that may not be the best/simplest)
Select an item in the list which generates a transition to a second card where the user can update the details, OR
Select one or more checkboxes that are part of the list item.

The last two I haven't tried yet, I'm concerned that the gesture scrolling code might interrupt the detection of those operations.

Re: Are there any sample android apps with native controls/menus

Posted: Mon Sep 19, 2011 9:05 pm
by richervin
I just received a link to the Summer Academy presentation which includes a link to a livecode application, deployable to both iOS and Android, and which includes a scrollable list including momentum scrolling.

Thank you runRev, this is just what I needed. Now if we can just work on the deployment pricing options :)

The scrolling is a bit jerky upon initial loading, but works and can probably be optimized for smoothness.

Re: Are there any sample android apps with native controls/menus

Posted: Mon Sep 19, 2011 10:12 pm
by BarrySumpter
Thanks for posting that.

I've just had another look at my Summer Academy examples and found the gesture scrolling for a list box.
I don't recall ever adding more than a few tasks cause we were studying absolutely every thing else.
So the momentum scrolling never came into play.

I don't know why RunRev wouldn't tell me this example included momentum scrolling
or mention it when I specificly asked multiple times.

But super glad its there as a starting point none the less.


They were a bit too busy telling me to joing the RunRev iOS Development Program.
I'm sure they are super busy on all the iOS development.
And politely telling me to stop bugging them.
I accept that.
I'm glad I've had me coffee this morning or I'd be very paranoid about RunRev keeping things from me.

I spent about 4 hours thinking about it and two hours actual work on my version of getting my DataGrid form to momentum scroll.

I'll have a look at theirs to see if they've done anything I can take advantage of.
May be able to improve the scrolling with a bit of adjustment.

This sample is really nice.
I've forgotten how much we covered.

I've just been informed this is a "simulation" for momentum gesture and not a "native control solution".
Hince the stuttering even on my HD2.
I'm thinking a DG form would be smoother.

Re: Are there any sample android apps with native controls/menus

Posted: Wed Sep 21, 2011 7:54 am
by BarrySumpter
Ok I've sorted the Android datagrid momentum scrolling from the summer academy list field momentum scrolling.

Much better formulas from much more learned RunRev peeps than I could have ever figured out.

Thats a big win for me.

Re: Are there any sample android apps with native controls/menus

Posted: Wed Sep 21, 2011 8:40 pm
by richervin
Better than I would have made the effort to figure out on my own.

Next up on my hit list:
- Figure out how to put two scrollers in one stack
- Customize the scroller
- Need a date input widget