Rotate shape
ramprasath23 opened this issue · 1 comments
ramprasath23 commented
i couldn't rotate the shape of hexaganol view, please give a solution
MiladFaridnia commented
I had the same issue. I searched in the repository and figure out hexogonal shapes are generated by the help of a SVG file. here is the code in HexagonImageView.java:
@Override
public ShaderHelper createImageViewHelper() {
return new SvgShader(R.raw.imgview_hexagon);
}
So to change the shape you just need to change that SVG file.
I think this solution is a little difficult. I expect an easy solution like :
android:rotation="45"
Please add this feature to your library. ;)