Android autoFit for browser

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
LiadTal6
Posts: 36
Joined: Sat Jul 25, 2015 5:26 pm

Android autoFit for browser

Post by LiadTal6 » Mon Apr 03, 2017 10:51 pm

Hello,

I'm searching for a way to auto fit a page in the mobile browser.
I know that in iOS you can just use the property of "autoFit" and the page is automatically fit himself for the app.
There must to be a way to auto fit a browser page in the android app, and I need your help please.

Thanks.

MaxV
Posts: 1579
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

Re: Android autoFit for browser

Post by MaxV » Sun Apr 09, 2017 11:10 am

Code: Select all

set the rect of widget "browser" to the rect of this stack
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

LiadTal6
Posts: 36
Joined: Sat Jul 25, 2015 5:26 pm

Re: Android autoFit for browser

Post by LiadTal6 » Sun Apr 09, 2017 6:00 pm

Thanks, but I'm using livecode 7 and that's not the widget from livecode 8.
Any further help for "autoFit" function in android in livecode 7 for the browser please?

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

Re: Android autoFit for browser

Post by Klaus » Sun Apr 09, 2017 6:34 pm

Hi LiadTal6,

well, the principle is the really same:

Code: Select all

...
revBrowserSet your_browser_id, "rect", the rect of this cd
...
:D


Best

Klaus

LiadTal6
Posts: 36
Joined: Sat Jul 25, 2015 5:26 pm

Re: Android autoFit for browser

Post by LiadTal6 » Tue Apr 11, 2017 10:27 pm

Thanks, but that's not the solution for my problem.
The "autoFit" in iOS open the link in the browser in desktop version, but unfortunately this parameter doesn't work in Android.
I want to find an alternative way to do the same thing in Android.

More information about the "autoFit" parameter that I'm talking about you can find here: http://livecode.wikia.com/wiki/MobileCo ... OS_Only.29

Please, any further help?

Thanks.
Last edited by LiadTal6 on Tue Apr 11, 2017 10:31 pm, edited 1 time in total.

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

Re: Android autoFit for browser

Post by Klaus » Wed Apr 12, 2017 9:20 am

Hi LiadTal6 ,

sorry, since I do not own any mobile device I did not understand the real meaning of "autofit".
But I am afraid there is nothing you can do with Livecode about this.

I hope someone will prove me wrong however!


Best

Klaus

Post Reply

Return to “Android Deployment”