android - Skew custom layout -


i've got custom layout , skew this:

@override protected void ondraw(canvas canvas) {     canvas.skew(0f, 0.2f);     super.ondraw(canvas); } 

and achieve enter image description here

although, want skew other side (i want right higher left) decided flip horizontally this

@override protected void ondraw(canvas canvas) {     canvas.scale(-1f, 1f, super.getwidth() * 0.5f, super.getheight() * 0.5f);     canvas.skew(0f, 0.2f);     super.ondraw(canvas); } 

but button, can see below, flips too. can suggest me how flip layout not children inside?


Comments

Popular posts from this blog

php - Passing multiple values in a url using checkbox -

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -