A way to show a piece of code in an Android app?
I want to show a piece of code in an android app. ... All I know is that I can use webview.
- Is there another (better) way to do this?
-
I want to show that they are retrieved from the DB and formatted in code-style.
According to the Android Developers Forum regarding
WebView
:
If your only goal is to render some HTML as part of your user interface, this is probably fine; the user will not need to interact with the web page other than reading it, and the web page will not need to interact with the user.
But I need users to say / dislike / comment on a piece of code. How can this be achieved then? At the moment I can only think of usingWebView + Android TextView / EditView
Is there a better (or efficient) way?
source to share
No one has answered this question yet
Check out similar questions: