Liquid level animation( Battery Doctor )?

I want to know how to make this kind of animation in android ( The same in Battery Doctor app ). I found a way to...