How can I change background image when it’s in landscape mode?

23 views
Skip to first unread message

Ali Hayder

unread,
Sep 5, 2014, 4:48:40 PM9/5/14
to appto...@googlegroups.com
I uploaded two image for background of my app in MIT App Inventor 2. Once I set a background image for portrait orientation it’s ok, but when it’s come to landscape same image is showing. I want show different images when device change it’s orientation. I have tried in some ways with the screen’s logic blocks in the block section. How can I do that?

Peep Prants

unread,
Sep 7, 2014, 12:07:51 PM9/7/14
to appto...@googlegroups.com
You need If-else block: 
Test if Screen With > Screen Height then use Lansdscape image else Portait image.
Reply all
Reply to author
Forward
0 new messages