F
F
FreezeGS2020-09-14 15:34:14
Java
FreezeGS, 2020-09-14 15:34:14

Creating a WebView without XML, how?

I have a project(javagdx game). There is no XML(Layout) anymore, so I need to create and use the WebView FROM code. How can I do that?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yuri, 2020-09-15
@FreezeGS

WebView webView = new WebView(context);
rootViewGroup.addView(webView);
More or less like this.

F
FreezeGS, 2020-09-14
@FreezeGS

Help..........

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question