Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to combine android studio view (frameLayout) and my Godot UI display? #16

Open
Famouzy opened this issue Jan 17, 2024 · 4 comments

Comments

@Famouzy
Copy link

Famouzy commented Jan 17, 2024

Good afternoon. Could you please suggest a solution where I can use View from android studio along with godot scene tree? Let me describe the situation:

I'm trying to combine google map and godot UI (plugin for godot). Using shouldBeOnTop() it is possible to put the map on top, which overlaps the interface created in godot - not suitable. If it specify false - shouldBeOnTop(), then the view goes under the viewport of godot, and it is not visible even if i set all possible flags transparent in the project settings (simply remains black background) when running on android.

Is there a solution where I can combine the google map together with the scene tree or display the view under the UI elements?
Thanks.

godot 4.2.1
Android Studio

@Famouzy
Copy link
Author

Famouzy commented Jan 17, 2024

I used it like that:

    @Override
    override fun shouldBeOnTop(): Boolean {
        return false //rue
    }

    @Override
    override fun onMainCreate(activity: Activity?): View? {
        GoogleMapsApi.layout = FrameLayout(activity!!)

        return GoogleMapsApi.layout
    }

@myselfuser1
Copy link

Are you trying to embed Godot view in androdi project or android view in Godot project?

@Famouzy
Copy link
Author

Famouzy commented Jan 26, 2024

Are you trying to embed Godot view in androdi project or android view in Godot project?

Android view as a plugin with godot view. Ideally, it would be great if i could make the viewport background transparent, but in many of the rendering modes with the right settings and all possible combinations did not work for me.
On windows transparency works, on android it doesn't.
That's why i need a way to combine plugin android with view and my Godot UI

@myselfuser1
Copy link

Check this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants