Set of utilities to work with the Size abstraction in Android.
Get Screen width and height
ISize size = new SizeFromDisplay(getWindowManager().getDefaultDisplay());
size.width();
size.height();
Get video width and height
ISize size = new SizeFromVideoFile(videoFilePath);
size.width();
size.height();
Get image file width and height
ISize size = new SizeFromImage(imgFilePath);
size.width();
size.height();
repositories {
jcenter()
}
dependencies {
compile 'com.github.sokolyaka:androidsizes:1.0.4'
}