User Tag List

Results 1 to 3 of 3

Thread: Android Display: Fit inside and adjust windows size (540x960) swapping to landscape

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jun 2007
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Android Display: Fit inside and adjust windows size (540x960) swapping to landscape

    Hi,

    My app defaults to portrait, a resolution of 540x960 with 'Fit inside and adjust window size' enabled. This works perfectly, however there are some frames which require landscape. In the app, when I set a frame to be landscape (frame size adjusted to 960x540) and force landscape mode in the Android Object, the app does render landscape but the resizing no longer applies. So instead of filling the frame area based on the horizontal axis, everything is at the phones default resolution which makes it tiny.

    Things i've tried:
    - Setting the frame and virtual sizes after the landscape mode switch
    - Used the AndroidPlus object to reset the display type to 3 (Fit inside), Refresh Display, toggled between display mode 1 and 3 to see if it forces a refresh of the scaling
    - I can see by a toast message the frame resolution is correct (960x540) but the app is not resizing after switching to landscape

    Does the 'Fit inside and adjust window size' calculation only apply on app startup? Or is there a way to force a resize after adjusting the app orientation?

    Many Thanks

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jun 2007
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Post Example File

    Hi again,

    Just made a quick example to explain what's going on
    The first screen shows the resizing working as expected and information regarding the frame, after a few seconds tap to go to the next frame.
    The next frame swaps to landscape and you can see the screen width and height are now at native resolution (at least on the AVD I'm using)

    Thanks
    Attached files Attached files

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jun 2007
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lightbulb Solution!

    I had to enable 'Resize display to fill window size' under Window Properties and works fine now in both portrait and landscape, I incorrectly assumed this option only applied to Windows builds.

    Thanks

Similar Threads

  1. Fit Inside and Adjust no longer scales to exact size
    By mobichan in forum iOS Export Module 2.5
    Replies: 3
    Last Post: 12th June 2017, 05:48 PM
  2. "Fit inside and adjust window size" for windows?
    By Banduck in forum Fusion 2.5
    Replies: 2
    Last Post: 23rd January 2015, 02:47 PM
  3. Pixel border when using 'Fit inside and adjust window size'
    By the88g in forum Android Export Module 2.5
    Replies: 3
    Last Post: 13th October 2014, 09:01 PM
  4. Fit inside & Adjust Window Size
    By ProdigyX in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 9th October 2014, 08:28 AM
  5. [RC3] fit inside and adjust window size issues
    By SoftWarewolf in forum Android Export Module Version 2.0
    Replies: 4
    Last Post: 11th February 2013, 07:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •