Hi Mark, I am trying to hack together a way to detect the height of the keyboard on Android. My plan is to have an image 1-pixel wide, but full height of the screen, with an rgb color of 0,0,1.
If the snapshot includes the keyboard, then the image data of the snapshot will include a point where the color changes to something other than 0,0,1. I can use that point to calculate how high the keyboard is. Yes, this is a ridiculous hack, but I do not see another solution. I can work with getting a snapshot just from the browser widget, for my particular case. As long as it also includes the keyboard in the image. I still have to test for that. Thanks for looking into this issue. J Sent from my iPhone > On Aug 31, 2017, at 8:25 AM, Mark Waddingham via use-livecode > <use-livecode@lists.runrev.com> wrote: > > Hi Jonathan, > >> On 2017-08-31 14:09, Jonathan Lynch via use-livecode wrote: >> Thanks for checking Paul. It appears that, with a browser widget on >> screen, I am only getting an image from the parts of the screen with >> the browser widget. >> With import snapshot, the non-browser parts of the image are >> transparent (and black). With exporting a snapshot to a variable and >> putting that variable into an image, the non-browser parts are visible >> but black. >> I will do more exploring and file a bug report if I can isolate the issue >> more. > > This is http://quality.livecode.com/show_bug.cgi?id=9992 - back when this was > reported there was no way to do as you are wanting. However, it seems like > since then there is a new way to get a snapshot of the screen: > > https://developer.apple.com/documentation/uikit/uiview/1622589-drawviewhierarchyinrect > > So we can try that to fix the problem (it might still not work for some layer > types). > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode