Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid Webview: horizontal scrolling issue with Arabic pages
    text
    copied!<p>I'm currently facing a problem trying to display some web pages in an Android WebView. </p> <p><strong>Note:</strong></p> <ul> <li>My application can already display HTML pages correctly for most of them, in various languages.</li> </ul> <p><strong>The problem:</strong></p> <p>For some <strong>arabic</strong> web pages such as <a href="http://colleges.jazanu.edu.sa/med/Pages/Default.aspx" rel="nofollow">http://colleges.jazanu.edu.sa/med/Pages/Default.aspx</a>, the horizontal scrollbar won't appear in my webview (but it would be needed). The page starts aligned on the right (seems to be normal), but no way to scroll left. </p> <p>Of course I have tried all the usual settings such as setHorizontalScrollBarEnabled(true), setLayoutAlgorithm(...), setInitialScale(1), and so on, but for <strong>some</strong> arabic pages (not all of them) it makes no difference: still not working.</p> <p>The same web page that doesn't work in my WebView can work well in an external browser.</p> <p>I have tried that on 1.5 and 2.2 Android devices, no difference.</p> <p>My WebView is contained in a LinearLayout, with WRAP_CONTENT layout param for its width, but honestly I don't think the problem is related to the way the webview is added.</p> <p>Did anyone have the same problem? Is this a known WebView issue while supporting "right to left" languages (in this case why doesn't it fail every time?). I have searched Google for a long time with no result.</p> <p>Thanks for your help.</p> <p>Benjamin Piette</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload