Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
3
Erster Beitrag:
vor 8 Monaten
Letzter Beitrag:
vor 8 Monaten
Beteiligte Autoren:
Yogi Yang, Fabrice Harari

[WM] - How to display HTML content in APK?

Startbeitrag von Yogi Yang am 22.02.2017 11:24

Hello,

In an Android app I have a need to display/render HTML content in the app.

For this I have used HTML Control.

Now if the content of HTML Control does not fit withing the display it shows scroll bar to scrolling the content. I want to hide this as I do not want the use to be able to scroll the content by swiping fingers on the screen.

I want to control the content that is displayed force the use has to navigate using the buttons I provide at the bottom the screen.

I also want to change allow user to change the size of font of the content. How to achieve this?

How can I achieve this?

It there are any other way to show HTML contents without using HTML Control please do share it with me.

TIA

Yogi Yang

Antworten:

Hi

you can put a control on top of your html control scrollbar areato hide the scrollbar (background color, size of the scrollbar)

You can put another control (this one invisible) on top of the html field itself to prevent any press/swipe

You can change the size of the font by changing the html code (it's a string, and you can replace elements in it). So read the content, replace what you need and display the modified content.

Best regards

von Fabrice Harari - am 22.02.2017 12:10
Hello Fabrice,

Thank you for your feedback.

Are there any possibilities of getting the HTML Control to render output to Image Control?

Are there any possibilities of modifying the CSS and getting the HTML Control to refresh itself?

TIA

Yogi Yang

von Yogi Yang - am 22.02.2017 14:10
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.