Layout issues after Icon installed - Maybe solved?

Long Post Warning!!!

Okay, I’ve been fighting this for 2 weeks and trying to figure out what causes this after installing an app icon……

I decompiled (with APKtool) my test .apk and started digging. When you install an app icon, thunkable turns it into a splash screen in portrait orientation like this…….

Then when your app opens, the splash screen pops up and your icon is “splashed”. The splashscreen.xml (see below) is for gravity gravity=”center”

When I changed gravity to “fill”, recompiled the .apk and reinstalled the app ……..It fixed the issue

so now my app launches correctly, directly to landscape and looks correct….

So the summary, right now if you set your app to be native “landscape”, add an app icon, you’ll get funny results on launch. This may also be causing some of the other bugs like these Let's Fix Layouts on Android Once and For All - Help Needed! and Why It’s Currently Impossible to Publish a Properly Responsive Android App in Thunkable - #11 by grant.mccallum I believe there was some sort of change made during update #504 where there was a fix put in to avoid splash screens from being stretched. What ever was done then might have caused this bug. Only Thunkable can tell us for sure. Hope this can get fixed so I can start making my production app with confidence.

2 Likes

Hi @22lemacym, :christmas_tree:
Thank you for investigating this more and sharing the details.
I will share them with the engineers and follow up here as soon as possible.
Thank you for your time on this.

Nice detective work! There must be something in the air tonight as I have also stumbled across a blocks-based solution to the Android layout scaling problem here, although I haven’t tested it on landscape projects yet.

1 Like

Thanks for the reply. Please make sure engineering takes this seriously. I have my app built on appInventor, but really prefer the thunkable UI features. I am going to start rebuilding on thunkable and hopefully by the time I am ready to publish, you guys will have an update to fix the problem. I can’t re-mix and publish using APKtool . Thanks!

1 Like