Page 1 of 1

[SOLVED] Icons and scrollbar with Android

Posted: Tue Jun 30, 2020 10:07 am
by egolombek
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!!!

Re: Icons and scrollbar with Android

Posted: Tue Jun 30, 2020 10:10 am
by richmond62
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."

Re: Icons and scrollbar with Android

Posted: Tue Jun 30, 2020 11:15 am
by egolombek
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

Posted: Tue Jun 30, 2020 11:23 am
by Klaus
egolombek wrote:
Tue Jun 30, 2020 11:15 am
Other ideas for a progress bar?
A progress bar is really no big deal, e.g. just increase the width of a graphic over time or something like that.
Or set the width of a group with an image in it. Know what I mean?

Re: Icons and scrollbar with Android

Posted: Tue Jun 30, 2020 11:53 am
by egolombek
Yah, that is a super easy work-around. Why didn't I think of that? :D

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.

Re: Icons and scrollbar with Android

Posted: Tue Jun 30, 2020 12:02 pm
by richmond62
Screenshot 2020-06-30 at 14.00.15.png
-
Here's what I think Klaus means in case you don't. 8)

Re: Icons and scrollbar with Android

Posted: Tue Jun 30, 2020 12:10 pm
by Klaus
egolombek wrote:
Tue Jun 30, 2020 11:53 am
Yah, that is a super easy work-around. Why didn't I think of that? :D
No idea!? :D
egolombek wrote:
Tue Jun 30, 2020 11:53 am
Do you have an idea of why icons do not appear in Android?
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.
egolombek wrote:
Tue Jun 30, 2020 11:53 am
Unfortunately, I have used icons quite a bit, and don't love the idea of changing them all to graphics.
:shock:
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

Posted: Tue Jun 30, 2020 12:25 pm
by Klaus
richmond62 wrote:
Tue Jun 30, 2020 12:02 pm
Screenshot 2020-06-30 at 14.00.15.png
-
Here's what I think Klaus means in case you don't. 8)
Yes. Or something like this, see attachment*!
Many, many ways to skin a cat in LC.

* Oui, c'est moi, about 60 years ago. :-)

[SOLVED] Icons and scrollbar with Android

Posted: Wed Jul 01, 2020 6:19 am
by egolombek
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.

Re: [SOLVED] Icons and scrollbar with Android

Posted: Wed Jul 01, 2020 6:55 am
by richmond62
I think mine looks nicer than the one that was included.
Give us a look then. 8)

Re: [SOLVED] Icons and scrollbar with Android

Posted: Wed Jul 01, 2020 7:20 am
by mrcoollion
egolombek wrote:
Wed Jul 01, 2020 6:19 am
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.
So let us learn and share a stack with your scrollbar .. :D

Re: [SOLVED] Icons and scrollbar with Android

Posted: Wed Jul 01, 2020 8:23 am
by egolombek
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.
Progress Bar Example.zip
(722 Bytes) Downloaded 188 times
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).
Progress Bar Example2.zip
(764 Bytes) Downloaded 186 times

Re: [SOLVED] Icons and scrollbar with Android

Posted: Wed Jul 01, 2020 12:24 pm
by bogs
egolombek wrote:
Wed Jul 01, 2020 6:19 am
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.
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.
aPic_iconToStack.png
I pick things up and put them down....
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 :)