WaveLoading icon indicating copy to clipboard operation
WaveLoading copied to clipboard

the function setLevel() does not work

Open David13579246810 opened this issue 6 years ago • 3 comments

   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

Screenshot_2019-04-19-19-09-11-934_com example wa .I can not get a fixed 35 level.

David13579246810 avatar Apr 19 '19 11:04 David13579246810

I also have this problem

foroughM avatar Aug 22 '19 11:08 foroughM

I figured it out: you should setImageDrawable() first For example:

  image1.setImageDrawable(mWaveDrawable);
   mWaveDrawable.setLevel(35);

Gredicer avatar Dec 21 '19 03:12 Gredicer

And the Level Max naximum is 10000

Gredicer avatar Dec 21 '19 03:12 Gredicer