In my app I'm using a few Imageviews with LevelListDrawables to be able to change then dynamically.
But now I want to know if I can read in which level the ImageView is stated, I set the level with setImageLevel() but there is no against hanging method to get the imagelevel.
So my question is: Is there a way to get the current imagelevel of an imageview?
You can't do it directly to the ImageView, but you can do this
imageView.getDrawable().getLevel()
That will do the trick, for further information the offical documentation for Drawable#getLevel()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With