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

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

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

asp.net mvc - breakpoint on javascript in CSHTML? -