This repository was archived by the owner on Nov 10, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
app/src/main/java/ir/smartdevelop/eram/showcaseview Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1212import smartdevelop .ir .eram .showcaseviewlib .Targetable ;
1313
1414public class CircleView extends View implements Targetable {
15- private static final int DEFAULT_CIRCLE_COLOR = Color .RED ;
1615
17- private int circleColor = DEFAULT_CIRCLE_COLOR ;
16+ private static final int DEFAULT_CIRCLE_COLOR = Color .RED ;
17+ private int _circleColor = DEFAULT_CIRCLE_COLOR ;
1818 private Paint _paint ;
1919 private Path _guidePath = new Path ();
2020 private RectF _boundingRect = new RectF ();
@@ -39,13 +39,13 @@ private void init(Context context, AttributeSet attrs)
3939
4040 public void setCircleColor (int circleColor )
4141 {
42- this .circleColor = circleColor ;
42+ this ._circleColor = circleColor ;
4343 invalidate ();
4444 }
4545
4646 public int getCircleColor ()
4747 {
48- return circleColor ;
48+ return _circleColor ;
4949 }
5050
5151 private int usableWidth () {
@@ -83,7 +83,7 @@ protected void onDraw(Canvas canvas)
8383 int cx = pl + halfUsableWidth ;
8484 int cy = pt + halfUsableHeight ;
8585
86- _paint .setColor (circleColor );
86+ _paint .setColor (_circleColor );
8787
8888 canvas .drawCircle (cx , cy , radius , _paint );
8989
You can’t perform that action at this time.
0 commit comments