Android Canvas.ClipPath -


i wanna clip circle region, somehow got rectangle, not circle. , here code:

protected boolean drawchild(canvas canvas, view child, long drawtime) {                 mrevealpath.reset();                 mrevealpath.addcircle(mcenterx, mcentery, mrevealradius, path.direction.cw);                 final int state = canvas.save();                 canvas.clippath(mrevealpath);                 boolean isinvalidate = super.drawchild(canvas, child, drawtime);                 canvas.restoretocount(state);                 return isinvalidate;             } 

i add linearlayout textview in child test.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -