[SOLVED] Icons and scrollbar with Android
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
[SOLVED] Icons and scrollbar with Android
As I battle getting Hebrew to display on Android, I was wondering if anyone has insight into how one can get icons and scrollbar to appear on an Android standalone? I assume there is an inclusion I am missing (although I said that for Hebrew, and it seems way more complex than that). I wish there was documentation for this sort of thing in the dictionary -- it says that the scrollbar is compatible with Android, but not what library to include, etc.. Weird.
Thank you all!!!
Thank you all!!!
Last edited by egolombek on Wed Jul 01, 2020 6:21 am, edited 2 times in total.
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Icons and scrollbar with Android
viewtopic.php?f=7&t=34346#p193596
"Mobile apps do not use scrollbars on either iOS or Android. Users expect to swipe field content, which you can do using mobileControlCreate to create a scroller overlay and mobileControlSet to assign its behavior."
"Mobile apps do not use scrollbars on either iOS or Android. Users expect to swipe field content, which you can do using mobileControlCreate to create a scroller overlay and mobileControlSet to assign its behavior."
Re: Icons and scrollbar with Android
Hmmm.... I have been using it as a progress bar, not as a scrollbar. But interestingly the LC dictionary does say it should work with Android. Other ideas for a progress bar?
Re: Icons and scrollbar with Android
Yah, that is a super easy work-around. Why didn't I think of that?
Do you have an idea of why icons do not appear in Android? Unfortunately, I have used icons quite a bit, and don't love the idea of changing them all to graphics.
Do you have an idea of why icons do not appear in Android? Unfortunately, I have used icons quite a bit, and don't love the idea of changing them all to graphics.
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Icons and scrollbar with Android
Here's what I think Klaus means in case you don't.
- Attachments
-
- progBar.livecode.zip
- Here's the stack.
- (963 Bytes) Downloaded 178 times
Re: Icons and scrollbar with Android
No idea!?
What Icons do you mean? Did you include the build-in Icons in your standalone?
Unfortunately the automatism "Search for inclusion" in the "Standalone Application Settings" does nto work reliably.
Icons are actually IMAGES so how would you "change" them to a graphic?
Or do you mean to use graphics INSTEAD of icons?
Re: Icons and scrollbar with Android
Yes. Or something like this, see attachment*!richmond62 wrote: ↑Tue Jun 30, 2020 12:02 pmScreenshot 2020-06-30 at 14.00.15.png
-
Here's what I think Klaus means in case you don't.
Many, many ways to skin a cat in LC.
* Oui, c'est moi, about 60 years ago.
- Attachments
-
- colorimageprogressbar.rev.zip
- (85.59 KiB) Downloaded 180 times
[SOLVED] Icons and scrollbar with Android
Well, problems solved...
In terms of the icons, I was talking about the built-in icons. I guess those images need to be copied, but I never figured out how to do that. So, I made a new set of icons which I imported as controls. It works, and actually my icons are nicer
In terms of the scrollbar, I created one quite easily, but thanks for the example! And, I think mine looks nicer than the one that was included. So, again, a win.
Thanks for everyone's help.
In terms of the icons, I was talking about the built-in icons. I guess those images need to be copied, but I never figured out how to do that. So, I made a new set of icons which I imported as controls. It works, and actually my icons are nicer
In terms of the scrollbar, I created one quite easily, but thanks for the example! And, I think mine looks nicer than the one that was included. So, again, a win.
Thanks for everyone's help.
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: [SOLVED] Icons and scrollbar with Android
Give us a look then.I think mine looks nicer than the one that was included.
-
- Posts: 720
- Joined: Thu Sep 11, 2014 1:49 pm
- Location: The Netherlands
Re: [SOLVED] Icons and scrollbar with Android
To clarify, by "nicer than the one that was included" I mean nicer than the one built in to LiveCode. Users have made some very nice progress bars as well. If you wish to see and use mine, please see the attached.
And, here's a version that uses property triggers - nice since you can make as many copies as you like and just change the perc property. To make it even fancier, create a width property so you can switch the width of the progress bar easily. (i.e. without changing each element of the group which is admittedly not exactly hard).
And, here's a version that uses property triggers - nice since you can make as many copies as you like and just change the perc property. To make it even fancier, create a width property so you can switch the width of the progress bar easily. (i.e. without changing each element of the group which is admittedly not exactly hard).
Re: [SOLVED] Icons and scrollbar with Android
I'm not quite sure I understand what you mean with that statement? If you mean moving an image from the image library onto a stack, this picture should explain it for you.
Go to "Development -> Image LIbrary"
1. Select image you want to use
2. Click on 'Place Image' button
3. Manually move image to final location
4. This isn't a requirement, but I add zeroes to the end of the id of any images I place. In the IDEs I am most likely to be in, this cuts down on IDE confusion, I don't know if the current one still gets confused or not.
In the picture above, I set the id of the first image to 1003000, any image I place after that one increments from there.
Now, if you mean something else entirely, please illuminate us