Virtual buttons of Nexus devices

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hello,
    Google Nexus devices unlike many other Android smartphones have no hardware buttons (for example like the Samsung Galaxy 3) only virtual buttons.

    my problem is that these virtual buttons lie over the actual frame. The actual frame width remains. Thus all the Hud elements /Buttons I positioning with: "Set X position to X Right Frame-30" will be covered by these virtuall buttons. Is there a way to get the current width of the Android screen?

    The "Touch joystick" from the Android Exporter positions itself correctly. So I am assuming that there is a way.
    Or is there even a way to get rid of this virtual buttons? Complete full screen would be best. :D


    Would be nice if someone could help me.

    Greetings Tobi

  • If you go onto the Android tab for the application properties you can set how you want your window / frame to be handled. I've noticed that the two that will resize your window work fine on my Nexus 7 and will adjust to take the virtual button space into account, although I've not read from the get screen edge expressions yet, so assuming they work correctly all should be good. The only quirk I found was that there is an option to hide the status bar. If you tick this your app will start using the full screen but when you tap the screen the app window shrinks (and MMF correctly resizes) and the nexus button area appears in the space - if I don't hide the status bar it all works smoothly. :)

    Andy H @ Please login to see this link. - Please login to see this link.
    Retro Gaming @ Please login to see this link.

  • Thanks for the answer.

    Unfortunately, I have to leave the display setting in my game to Fit Outside otherwise I get graphical glitches (Small distances between the Quick Backdrops)
    On the Nexus 7 that's not that bad because virtual buttons appears from the bottom (landscape). But on the smartphone they come from the right and thus they cover 32px of the Frame.

    I need a way to position the graphics to the right edge of the Android screen not game frame.

    Hope someone knows what I mean, sorry my english is not so good.

  • After much trial and error I have it nearly:

    Frame Width > ScreenWidth (Android Objekt) ==> Set Frame Width to ScreenWidth (Android Objekt)
    Frame Width = ScreenWidth (Android Objekt) ==> Set X Position (Counter) to ScreenWidth (Android Objekt)-10

    But now the counter is flying to the left out of the picture. The counter should only went 10pixel to the left. What am I doing wrong?

  • I've been wrestling recently with this, as my Nexus 4 has only software buttons. I too use the "fit outside" mode to make it work and noticed that the value returned by "X Right Frame" includes the pixels occupied by the software buttons, resulting in some controls being covered by the system buttons. I was curious if there's a way to actually detect if the device has software or hardware buttons, but I haven't found any, thus being somewhat stumped.

    I haven't thought of that solution. Thanks for sharing. I'll try it.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!