-
My app is not for a landscape view. Is it possible to disable the rotation for mobile ? Like we can do in a manifest. It's for Android. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You can place your own Android manifest file in the root of your project. It will be used instead of the one supplied by Fyne. This way, you can use a manifest that suits your needs better. See https://github.com/cjh0613/wormhole-gui/blob/mobile/AndroidManifest.xml for an example on what I mean (had to link to one of the forks as the manifest has been removed upstream due to no longer being needed). If you wish to copy the Fyne manifest and modify it for your needs, you can find the code here: fyne/cmd/fyne/internal/mobile/manifest.go Line 60 in 6e90820 |
Beta Was this translation helpful? Give feedback.
You can place your own Android manifest file in the root of your project. It will be used instead of the one supplied by Fyne.
This way, you can use a manifest that suits your needs better. See https://github.com/cjh0613/wormhole-gui/blob/mobile/AndroidManifest.xml for an example on what I mean (had to link to one of the forks as the manifest has been removed upstream due to no longer being needed).
If you wish to copy the Fyne manifest and modify it for your needs, you can find the code here:
fyne/cmd/fyne/internal/mobile/manifest.go
Line 60 in 6e90820