Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Kaushik | |
Old Version | Published before Godot 3 was released. |
Basically, I want to preserve my current view, switch to a different view, and restore the current view when I am done. I am encountering a dark/dimmed overlay on my original view during restore.
I have a very simple scene with a button, which opens up a GestureOverlayView() when pressed. I save my current view as a ViewGroup.
viewGroup = (ViewGroup)((ViewGroup)m_pActivity.findViewById(android.R.id.content)).getChildAt(0);
I add attributes to the GestureOverlayView and switch to it.
m_pActivity.setContentView(gestureOverlayView);
When I am done, I reset the content view to the original saved one after removing the overlay view.
((ViewGroup) gestureOverlayView.getParent()).removeView(gestureOverlayView);
m_pActivity.setContentView(viewGroup);
All fine all good, but I get a darker/dimmed version of the original view. At first I thought it could be a godot refresh issue, so I tried calling update() from the gd script, but didn’t work.
Adding screenshots.
The pictures are gone
Kevin | 2016-12-30 01:51