Is there any way to make an Android Pick Wheel? - Solved

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
DR White
Posts: 685
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Is there any way to make an Android Pick Wheel? - Solved

Post by DR White » Sun Jul 30, 2017 3:55 pm

I have searched Dictionary, tutorials and postings, but I can't find anything.

I have attached a simple stack with as far as I could go.

Any help will be appreciated.

Thanks You,

David
Attachments
TestPickerAndroid copy.livecode.zip
(1.85 KiB) Downloaded 220 times
Last edited by DR White on Fri Aug 04, 2017 12:08 pm, edited 1 time in total.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7215
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Is there any way to make an Android Pick Wheel with LC?

Post by jacque » Mon Jul 31, 2017 5:00 pm

Android doesn't use a pickwheel, you won't find it in any app. It uses an option sheet instead, which you can bring up with the mobilePick function.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: Is there any way to make an Android Pick Wheel with LC?

Post by [-hh] » Tue Aug 01, 2017 11:59 am

If you do it by yourself the source code of Bernd's stack "Scroll Images" may help:
http://berndniggemann.on-rev.com
shiftLock happens

DR White
Posts: 685
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: Is there any way to make an Android Pick Wheel with LC?

Post by DR White » Tue Aug 01, 2017 6:59 pm

Jacque,

I am not familiar with "option sheet". I used the mobilePick function in the stack that I included with this posting. Could you take a peek at it and tell me if this is what you are referring to?

Thanks,

David

----------------------------------------------

-hh,

That's a cool stack that you referred me to, but It will not work in my application very well.

Thanks,

David

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7215
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Is there any way to make an Android Pick Wheel with LC?

Post by jacque » Wed Aug 02, 2017 5:17 pm

I didn't see an enclosure in your post, but the Android version of a picklist is similar to this:

https://niteridersurfs.files.wordpress. ... enu_02.png
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

DR White
Posts: 685
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: Is there any way to make an Android Pick Wheel with LC?

Post by DR White » Thu Aug 03, 2017 11:27 pm

Jacque,

That is the way mine looks.

But, I can not get the InitialIndex to highlight any items in the list.

Thanks for your help,

David

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7215
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Is there any way to make an Android Pick Wheel with LC?

Post by jacque » Fri Aug 04, 2017 5:01 am

Code: Select all

mobilePick "Aphid" & return & "Bird" & return & "Cat", 3, "checkmark"
put the result 
That should give you a picklist with the third line chosen. If you choose a different line it should put the line number into the message box.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

DR White
Posts: 685
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: Is there any way to make an Android Pick Wheel with LC?

Post by DR White » Fri Aug 04, 2017 12:07 pm

Jacque,

I used the following code:

repeat with x =26 to 0 step -1
if x = 26 then
put x into tList1
else
put x & cr & tList1 into tList1
end if
end repeat

mobilePick tList1, 5, "canceldone", "checkmark"
put the result into Test2


I did see the 5th little button on right checked.

Android has pretty poor pick system compared to apple.

Thanks so much for your help,

David

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Is there any way to make an Android Pick Wheel with LC?

Post by Klaus » Fri Aug 04, 2017 12:14 pm

Hi David,
DR White wrote:Android has pretty poor pick system compared to apple.
complain at Google! :D


Best

Klaus

Post Reply

Return to “Android Deployment”