WaveLoading
WaveLoading copied to clipboard
the function setLevel() does not work
Here is my code
ImageView image1 = findViewById(R.id.image1); //my battery image
Drawable mWaveDrawable = new WaveDrawable(image1.getDrawable());
mWaveDrawable.setLevel(35);
image1.setImageDrawable(mWaveDrawable);
The water level of my image is 0
.I can not get a fixed 35 level.
I also have this problem
I figured it out: you should setImageDrawable() first For example:
image1.setImageDrawable(mWaveDrawable);
mWaveDrawable.setLevel(35);
And the Level Max naximum is 10000