Package com.example.qrgo.utilities
Class ImageViewController
- java.lang.Object
-
- com.example.qrgo.utilities.ImageViewController
-
public class ImageViewController extends java.lang.Object
The ImageViewController class provides a utility method to set an ImageView's image based on the first character of a given name. If the first character is a letter between A and Z, the corresponding image in the drawables folder will be used. If the first character is a non-alphanumeric character or a number, a random image will be chosen from the drawables folder.
-
-
Constructor Summary
Constructors Constructor Description ImageViewController()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
setImage(java.lang.String name, android.widget.ImageView imageView)
Sets the image of an ImageView based on the first character of the given name.
-