Skip to first unread message

supermango

unread,
Feb 14, 2016, 12:15:29 PM2/14/16
to mitappinv...@googlegroups.com
Hi all,

I've searched on this topic and the most common answer seems to be "set the screen to not scrollable and then set the webviewer to fill parent" - but this stretches the height.

I'm having an issue with the Web Viewer not sizing exactly with it's contents. It will either cut off the contents (auto) or it will stretch the table (fill parent). I've tried various settings, but I cannot get it to auto-size.

How can I get this to be sized automatically with the content of the fusion tables? Is there an easy way for this or am I stuck using a set # of pixels?

SteveJG

unread,
Feb 14, 2016, 12:32:06 PM2/14/16
to MIT App Inventor Forum
I do not think you can get the Webviewer with AI2 to autosize based on the size of a FT.  The WebViewer is not a full featured browser.   You might get a better result using the ActivityStarter to call your default browser but that might not work either.

There might be a work around based on your knowledge of the FT's dimensions, the use of knowledge about your device's H x W in pixels dimensions etc.  How?   You will have to experiment.   An alternative might be to display the contents of your FT  in a AI2 Table  or convert the values to a csv file and use perhaps Taifun's Dynamic html table to display results.

Alternatively, you might use a Java based full featured compiler like Eclipse or Android Studio 2 to achieve your goals instead of using AI2 which is an entry level compiler created primarily as a teaching tool for programming concepts.

Taifun

unread,
Feb 14, 2016, 2:44:58 PM2/14/16
to MIT App Inventor Forum
what does " it will stretch the table (fill parent)" mean?
can you provide a screenshot?
normally you set the height to fill parent and if the table is larger, automatically a scroll bar will appear...

Taifun

Trying to push the limits of App Inventor! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun. 

supermango

unread,
Feb 14, 2016, 3:01:49 PM2/14/16
to MIT App Inventor Forum
Hi Taifun,

Here's a screen:


Screenshot_2016-02-14-13-56-08.png

supermango

unread,
Feb 14, 2016, 3:05:46 PM2/14/16
to MIT App Inventor Forum
But after re-thinking fusion tables... I decided to give up this effort and go to WebView -> PHP/MySQL option.
There's too many hurdles with fusion tables!

As SteveJG, AI is meant to help teach programming. However, I'm actually trying to make useful apps seem to hit limitations.

Taifun

unread,
Feb 14, 2016, 3:08:18 PM2/14/16
to MIT App Inventor Forum
set the height to fill parent and do the Pizza Party tutorial to learn how to work with fusiontables

Taifun

unread,
Feb 14, 2016, 3:10:21 PM2/14/16
to MIT App Inventor Forum
yes, MySQL offers more possibilities...
Taifun

supermango

unread,
Feb 14, 2016, 3:21:41 PM2/14/16
to MIT App Inventor Forum
Thank Taifun. I actually followed the Pizza Party app to make my app. But something is funky w/ the webviewer+FT. I checked the dimensions several times. It is set properly and it still seems to stretch the table. It only works if I specify # pixels.

supermango

unread,
Feb 14, 2016, 3:25:19 PM2/14/16
to MIT App Inventor Forum
Taifun, your comments are always very helpful and your examples are great. If you don't already work for Google, they are missing out!

You've helped me on multiple occassions. The MYSQL page is very detailed and will get me going in the right direction! Thanks again for your help.

Taifun

unread,
Feb 14, 2016, 4:51:50 PM2/14/16
to MIT App Inventor Forum
 If you don't already work for Google, they are missing out!
ha ha, thank you!

you are right, I just tried it, the rows will be stretched if there are only a few...
the probably easiest workaround is to add some rows ... ;-)

Taifun


Reply all
Reply to author
Forward
0 new messages