Android Web View Problem - Urgent

HashanR

Member
Jun 26, 2011
2,839
421
0
Matara
I need to display only specific part of web page on my webview and I tried it using Jsoup but selected part is displayed without java-script functionality and CSS styles. Jsoup display specified part but just only HTML elements and I can do nothing with it.

Can I do with using an android webview zoom ?
Then how can I set initial zoom level and focus only for specific area and I need to disable zoom option for users because if they adjust zoom then other part of web page will be displayed.


I need to display web page on my webview looks like this


hHrPL.png






but it actually looks like this

FGpeD.png





So please help me :(

Thanks!
 
Last edited:

baba-chuti

Well-known member
  • Feb 27, 2017
    6,863
    9,589
    113
    okata lesima vidiya oya web template eka mobile frendly wena vidiyata hadana eka.

    https://www.w3schools.com/css/css_rwd_mediaqueries.asp

    ex -
    https://www.beatsnoop.com/products/calculation-tools/love-flames-calculator/

    https://www.beatsnoop.com/products/online-keyboards/sinhala/

    oke machan web browser eke size eka change karnakota eke thiyen design wenas vena vidiya oyata balagnna puluwan. media query use karla karma oni android, ios, windows, oni platform ekakta mobile frienldy wenawa.

    ita passe android webview app eka hadnna. oya dala tiyenawa vage mobile friendly vidiyata hariyatama dispaly wei. screen ekath ganata width eka set wenwa.