Skip to content

Latest commit

 

History

History
14 lines (13 loc) · 840 Bytes

README.md

File metadata and controls

14 lines (13 loc) · 840 Bytes

HtmlTextView(Deprecated)

Works bad on Android 7.0, not recommend.
Show html codes in the TextView on Android 3.0 or higher version.
As we can't do some downloading on Android 3.0 or higher version in the main thread, so we should download the images in the child thread, and then update the UI through handler.

How to use:

1.Add related permission in your AndroidManifest.xml:
android.permission.INTERNET
android.permission.WRITE_EXTERNAL_STORAGE
2.Import ImageDownloader.java
3.Replace the TextView, local path that saves the image, and your html codes in MainActivity.java
image

Run your app, it looks like this:

image