Simple sample including an Android project that mean to show a PNG image on the screen. The aim of this repo is decodifying the image without using the Android framework for PNG files in order to learn about the PNG file structure. This does not mean to be efficient but self-explanatory enough to understand how to deal with PNG files from zero..
android-png-loader is hosted in the following web site
https://github.com/carlos-sancho-ramirez/android-png-loader
If you think the Android project android-png-loader listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
The following table is the detailed list of android-png-loader.
Item | Value |
---|---|
Java File Count | 6 |
Supported screen sizes | [mdpi, hdpi, xhdpi] |
Target SDK Version | 15 |
Minimum SDK Version | 5 |
Activity Count | 1 |
Test Case Count | 1 |
Asset File Names | assets\ball.png assets\dice.png assets\redblack.png |
There are 1 image files in android-png-loader. The names of the image files are listed as follows.
ic_action_search.png
The following screenshort is generated from the image listed above.
android-png-loader has the following Java source files.
sword.android.png_loader.Chunk.java sword.android.png_loader.IdatInputStream.java sword.android.png_loader.MainActivity.java sword.android.png_loader.UnexpectedEndOfFileException.java sword.android.png_loader.Utils.java sword.android.png_loader.WrongFileFormatException.java