[SOLVED] Icons and scrollbar with Android

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
egolombek
Posts: 51
Joined: Thu Jan 30, 2020 2:11 pm

[SOLVED] Icons and scrollbar with Android

Post by egolombek » Tue Jun 30, 2020 10:07 am

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!!!
Last edited by egolombek on Wed Jul 01, 2020 6:21 am, edited 2 times in total.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 4600
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Icons and scrollbar with Android

Post by richmond62 » Tue Jun 30, 2020 10:10 am

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."

egolombek
Posts: 51
Joined: Thu Jan 30, 2020 2:11 pm

Re: Icons and scrollbar with Android

Post by egolombek » Tue Jun 30, 2020 11:15 am

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?

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

Re: Icons and scrollbar with Android

Post by Klaus » Tue Jun 30, 2020 11:23 am

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?

egolombek
Posts: 51
Joined: Thu Jan 30, 2020 2:11 pm

Re: Icons and scrollbar with Android

Post by egolombek » Tue Jun 30, 2020 11:53 am

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.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 4600
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Icons and scrollbar with Android

Post by richmond62 » 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)
Attachments
progBar.livecode.zip
Here's the stack.
(963 Bytes) Downloaded 7 times

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

Re: Icons and scrollbar with Android

Post by Klaus » Tue Jun 30, 2020 12:10 pm

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?

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

Re: Icons and scrollbar with Android

Post by Klaus » Tue Jun 30, 2020 12:25 pm

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. :-)
Attachments
colorimageprogressbar.rev.zip
(85.59 KiB) Downloaded 8 times

egolombek
Posts: 51
Joined: Thu Jan 30, 2020 2:11 pm

[SOLVED] Icons and scrollbar with Android

Post by egolombek » Wed Jul 01, 2020 6:19 am

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.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 4600
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: [SOLVED] Icons and scrollbar with Android

Post by richmond62 » Wed Jul 01, 2020 6:55 am

I think mine looks nicer than the one that was included.
Give us a look then. 8)

mrcoollion
Posts: 554
Joined: Thu Sep 11, 2014 1:49 pm
Location: The Netherlands

Re: [SOLVED] Icons and scrollbar with Android

Post by mrcoollion » Wed Jul 01, 2020 7:20 am

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

egolombek
Posts: 51
Joined: Thu Jan 30, 2020 2:11 pm

Re: [SOLVED] Icons and scrollbar with Android

Post by egolombek » Wed Jul 01, 2020 8:23 am

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 6 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 5 times

bogs
Posts: 4692
Joined: Sat Feb 25, 2017 10:45 pm

Re: [SOLVED] Icons and scrollbar with Android

Post by bogs » Wed Jul 01, 2020 12:24 pm

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 :)
Image

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”