Created by: Gustavo Araújo (gustavo.hg.araujo@gmail.com)
This module has already implemented the functions and procedures related to images that are currently used in Android apps, such as:
- Download images using a URL
- Setting images into ImageView (when a ProgressBar is passed with the ImageView, it is automatically hidden when the image is visible)
- Crop image into square and circle shapes
To import this module simply:
- Open the Android Studio
- On the menu
File
, selectNew
thenImport module
- In the
Source directory
find theimgtools
directory and then click inFinish
- Add
compile project(path: ':imgtools')
to thedependencies
section of thebuild.gradle
of the module that will use ImgTools. - Done. Now import the class into your Java classes.
Because all the functions are static, to use them simply call using com.gustavogoma.utils.imgtools.ImgTools.<method_name>