This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context; | |
import android.graphics.Matrix; | |
import android.util.AttributeSet; | |
import android.widget.ImageView; | |
/** | |
* This ImageView scales the image to match either the width or height of the | |
* ImageView and places in the center-bottom. For eg. if the ImageView is 10x6 | |
* units and the image is 4x4 units, it will scale the image to 6x6 units and | |
* place as follows: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
/** | |
* FailSafeFile guarantees that the complete file is written before renaming it | |
* to its actual name. Everything is written to a .tmp hidden file unless | |
* finishWrite() is called. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.File; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.Stack; | |
import android.os.FileObserver; | |
/** | |
* A FileObserver that observes all the files/folders within given directory | |
* recursively. It automatically starts/stops monitoring new folders/files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.List; | |
import android.widget.ImageView; | |
import com.android.volley.VolleyError; | |
import com.android.volley.toolbox.ImageLoader; | |
import com.android.volley.toolbox.ImageLoader.ImageContainer; | |
import com.android.volley.toolbox.ImageLoader.ImageListener; |