Skip to content

Show html codes in the TextView on Android 3.0 or higher version(especially dealing with showing images/pictures on the Internet).

Notifications You must be signed in to change notification settings

ITAnt/HtmlTextView

Repository files navigation

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

About

Show html codes in the TextView on Android 3.0 or higher version(especially dealing with showing images/pictures on the Internet).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages