I am currently developing a web wrapper application and I want to display specific elements in an HTML page. The code snippet provided below shows my progress so far, but I understand that I may need to utilize JavaScript to achieve the desired functionality. However, I am unsure about how to proceed from here.
class WebWrapperApp extends Activity {
onCreate(bundle) {
super.onCreate(bundle);
// Setting the view to the main layout resource
setContentView(Resource.Layout.Main);
const webView = findViewById(Webview, Resource.Id.webView);
webView.settings.javascriptEnabled = true;
// Using a subclassed WebViewClient to handle hybrid native calls
webView.setWebViewclient(new WebViewClient());
// Loading the URL of the web page
webView.loadUrl("http://bobhoil.com/");
}
onCreateOptionsMenu(menu) {
super.onCreateOptionsMenu(menu);
const inflater = this.menuInflater;
inflater.inflate(Resource.Menu.menu, menu);
return true;
}
}
Thank you for any guidance or suggestions!