Webview With Read More
Is it possible to specify the number of lines displayed by a web view and to disable its scrolling and to have a read more label like websites like the picture attached?
Solution 1:
You just need a combination of CSS and/or Javascript to achieve this and it better done in the website itself than in the Android app.
One way of Achieving in Android though, is to set height such that it shows only few lines along with disabling scrolling (refer Disable scrolling in webview?) and having a read more link below the webview, when clicked increase the height of the webview to MATCH_PARENT and also add the scrolling back and hide the read more item.
Post a Comment for "Webview With Read More"