Can Add Display Zoom in web viewer
like in this code:
WebView wv = (WebView) webViewer.getView();
wv.getSettings().setDisplayZoomControls(false);
Can Add Display Zoom in web viewer
like in this code:
WebView wv = (WebView) webViewer.getView();
wv.getSettings().setDisplayZoomControls(false);
@ADMIN_USER You can’t add any code to any existing component instead you can make a new extension using the code through niotron IDE
ide.niotron.com
Hello @iaditya_nanda I made extension and tested it and it is still not work
WebViewerAddons.aix (4.6 KB)
package me.user;
import android.app.Activity;
import android.content.Context;
import com.google.appinventor.components.annotations.*;
import com.google.appinventor.components.common.ComponentCategory;
import com.google.appinventor.components.runtime.AndroidNonvisibleComponent;
import com.google.appinventor.components.runtime.AndroidViewComponent;
import android.view.View;
import android.webkit.WebSettings;
import android.webkit.WebView;
import com.google.appinventor.components.runtime.ComponentContainer;
import com.google.appinventor.components.runtime.EventDispatcher;
@DesignerComponent(
version = 1,
description = "This Is WebViewer Addons",
category = ComponentCategory.EXTENSION,
nonVisible = true,
iconName = "")
@SimpleObject(external = true)
//Libraries
@UsesLibraries(libraries = "")
//Permissions
@UsesPermissions(permissionNames = "")
public class WebViewerAddons extends AndroidNonvisibleComponent {
//Activity and Context
private Context context;
private Activity activity;
public WebViewerAddons(ComponentContainer container){
super(container.$form());
this.activity = container.$context();
this.context = container.$context();
}
@SimpleFunction
public void DisplayZoomControls(AndroidViewComponent webViewer, boolean enabled){
WebView wv = (WebView) webViewer.getView();
wv.getSettings().setDisplayZoomControls(enabled);
}
}
I just wanna controll hide and show
I think the inbuilt website component have this feature to enable and disable zoom