2222
2323public class CircularImageView extends AppCompatImageView
2424{
25- private static final int DEF_PRESS_HIGHTLIGHT_COLOR = 0x32000000 ;
25+ private static final int DEF_PRESS_HIGHLIGHT_COLOR = 0x32000000 ;
2626
2727 private Shader mBitmapShader ;
2828 private Matrix mSharedMatrix ;
@@ -49,17 +49,17 @@ public CircularImageView(Context context, AttributeSet attrs)
4949 super (context , attrs );
5050
5151 float strokeWidth = 0 ;
52- boolean highlighEnable = true ;
52+ boolean highlightEnable = true ;
5353 int strokeColor = Color .TRANSPARENT ;
54- int highlightColor = DEF_PRESS_HIGHTLIGHT_COLOR ;
54+ int highlightColor = DEF_PRESS_HIGHLIGHT_COLOR ;
5555
5656 if (attrs != null )
5757 {
5858 TypedArray a = context .obtainStyledAttributes (attrs , R .styleable .CircularImageView , 0 ,0 );
5959 strokeColor = a .getColor (R .styleable .CircularImageView_strokeColor , Color .TRANSPARENT );
6060 strokeWidth = a .getDimension (R .styleable .CircularImageView_imgStrokeWidth , 0 );
61- highlighEnable = a .getBoolean (R .styleable .CircularImageView_highlightEnable , true );
62- highlightColor = a .getColor (R .styleable .CircularImageView_highlightColor , DEF_PRESS_HIGHTLIGHT_COLOR );
61+ highlightEnable = a .getBoolean (R .styleable .CircularImageView_highlightEnable , true );
62+ highlightColor = a .getColor (R .styleable .CircularImageView_highlightColor , DEF_PRESS_HIGHLIGHT_COLOR );
6363 a .recycle ();
6464 }
6565
@@ -77,7 +77,7 @@ public CircularImageView(Context context, AttributeSet attrs)
7777 mPressedPaint .setColor (highlightColor );
7878 mPressedPaint .setStyle (Paint .Style .FILL );
7979
80- mHighlightEnable = highlighEnable ;
80+ mHighlightEnable = highlightEnable ;
8181 mInitialized = true ;
8282 setupBitmap ();
8383 }
0 commit comments