0

I have huge-image , but i can't using webview to display full size in tablet . Only display a part , it cannot display full image

how can i do ?

thank you

Chicken
  • 29
  • 1
  • 10

1 Answers1

1

If you mean that the Image you're loading in to the Webview overflows the device width, you can try changing the Webview's LayoutAlgorithm to Single Column.

webview.getSettings().setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN);

This automatically adjusts image size for all screen sizes and orientations.

Via This Question

Community
  • 1
  • 1
Sheharyar
  • 73,588
  • 21
  • 168
  • 215