Screen orientation on Raspberry Pi 3 with Android things

前端 未结 3 2019
太阳男子
太阳男子 2020-12-09 20:26

I\'ve just bought a Raspberry Pi 3 with a 7\" Display touch screen and a casing.

Unfortunately, the casing can\'t allow me to rotate manually the screen so my apps a

3条回答
  •  长情又很酷
    2020-12-09 21:03

    Try this:

    if (Build.DEVICE.equalsIgnoreCase("rpi3"))
        setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_REVERSE_LANDSCAPE);
    

提交回复
热议问题