Skip to main content
New Participant
January 21, 2025
Solved

How to dynamically resize panel in 2d app mode?

  • January 21, 2025
  • 1 reply
  • 606 views

Hello I've an app in 2d mode, I want to resize dynamically based on content resolution. How can i achieve this? 

    This topic has been closed for replies.
    Best answer by liangli

    Hello,

    As shown in the sample below, you can set the resize config in AndroidManfest for 2D mode; but we don't support resizing dynamically based on content resolution currently.

    https://github.com/meta-quest/Meta-Spatial-SDK-Samples/blob/main/HybridSample/app/src/main/AndroidManifest.xml#L84

    1 reply

    liangliAnswer
    Meta Employee
    January 27, 2025

    Hello,

    As shown in the sample below, you can set the resize config in AndroidManfest for 2D mode; but we don't support resizing dynamically based on content resolution currently.

    https://github.com/meta-quest/Meta-Spatial-SDK-Samples/blob/main/HybridSample/app/src/main/AndroidManifest.xml#L84

    Seeing is believing.