Back to project page android-shape-imageview.
The source code is released under:
Apache License
If you think the Android project android-shape-imageview listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.github.siyamed.shapeimageview; //from w w w .jav a2s. c om import android.content.Context; import android.util.AttributeSet; import com.github.siyamed.shapeimageview.shader.ShaderHelper; import com.github.siyamed.shapeimageview.shader.SvgShader; public class PentagonImageView extends ShaderImageView { public PentagonImageView(Context context) { super(context); } public PentagonImageView(Context context, AttributeSet attrs) { super(context, attrs); } public PentagonImageView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Override public ShaderHelper createImageViewHelper() { return new SvgShader(R.raw.imgview_pentagon); } }