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

Zoom controls don't work #4

Closed
alorma opened this issue Jul 5, 2016 · 2 comments
Closed

Zoom controls don't work #4

alorma opened this issue Jul 5, 2016 · 2 comments

Comments

@alorma
Copy link

alorma commented Jul 5, 2016

As requested in gitskarios/Gitskarios#478

I did the following:

https://github.com/gitskarios/Gitskarios/blob/develop/app/src/main/java/com/alorma/github/ui/fragment/FileFragment.java#L91

 @Override
  public void onViewCreated(View view, Bundle savedInstanceState) {
    super.onViewCreated(view, savedInstanceState);

    webView = (HighlightJsView) view.findViewById(R.id.webview);

    webView.setTheme(Theme.ANDROID_STUDIO);
    webView.setHighlightLanguage(Language.AUTO_DETECT);
    webView.invokeZoomPicker();
}

But nothing appears on the screen

PS: neither work .zoomIn() or .zoomOut()

@alorma alorma changed the title .invokeZoom() doesn't show widget Zoom controls don't work Jul 5, 2016
@PDDStudio
Copy link
Owner

This was disabled by default.
With Version 1.1.0 you can enable zoom controls by calling setZoomSupportEnabled(boolean supportZoom) on HighlightJsView

@alorma
Copy link
Author

alorma commented Jul 8, 2016

Thanks! Working!

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