How to get the portrait and landscape status with Senor mode?

Hi everyone , I want to make a screen that will hide , resize and show arrgranement when I use Landscape, just like other app , they can auto rotate and the size of the components won’t be too big or small , anyway to do that ?

Você pode tentar isso:
image
Acho que deveria ter um bloco “Get Position”…

this doesnt work

Entã tente usar o sensor de orientação:
image

how ???

Esse bloco detecta se a orientação do celular mudou e dispara uma ação, ou seja, quando o celular estiver deitado, irá fazer o que você quer.

segundo a tradução do meu navegador é isso que você quer, não?

english pls

desculpe, irei traduzir:
image

1 Like

Ola, não sei como faço para usar esse sensor de orientação, quando seleciono uma imagem frontal no imagepicker, ela rotociona 90* graus, prq isso e como faço para deixar normal??

English only.

1 Like

Hello, I don’t know how to use this orientation sensor, when I select a frontal image in the imagepicker, it rotates 90° degrees, why and how do I make it normal ??

1 Like

Did you search the Docs, the Internet and the Com? If that all has been done, then you can ask.

Yoshi

1 Like

if screen width > screen height
then landscape
else portrait

Taifun

1 Like