-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Going back to previous Activity from full screen mode #128
Comments
I'm using this to go back to the previous activity from fullscreen mode. I think it's time to add these options to the library. |
Thanks for posting this workaround. The demand is pretty obvious for programatic control of view modes, so we're planning to add that in the next release. |
@nathanmartz That will be very cool! |
With v0.9.0 there's now an official API for this. |
@dav-cz @electmk the code from @hegazy worked on older version of the gvr-android-sdk : 1.20.0 for instance. The new solution is to use the onDisplayModeChanged callback from VrPanoramaEventListener.
|
@Awsom3D |
@electmk as said before the onDisplayModeChanged callback is from VrPanoramaEventListener, not VrPanoramaActivity. From your VrPanoramaActivity onCreate you should set a VrPanoramaEventListener on your VrPanoramaView :
Then from this listener, override the onDisplayModeChanged callback
|
@Awsom3D |
@electmk sorry, no clue. |
Based on response on following issue I was able to implement a "always full screen" mode.
#66
For reference I am doing the following
Now I'd like to be able to go from the full screen mode directly back to previous activity but cannot find a way to hijack the back button press. I've tried the following to no avail
Any help/suggestions would be appreciated
The text was updated successfully, but these errors were encountered: