siyamed / android-shape-imageview

Custom shaped android imageview components
MIT License
2.67k stars 599 forks source link

Rotate shape #64

Open ramprasath23 opened 7 years ago

ramprasath23 commented 7 years ago

i couldn't rotate the shape of hexaganol view, please give a solution

MiladFaridnia commented 6 years ago

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. ;)