Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[ViewPagerIndicator] Fix Color-related breakage.

  • Loading branch information...
commit 0477005bd8ff597e60c20ed16b69d10ba0cf32b7 1 parent c0fd220
@jonpryor jonpryor authored
View
6 ViewPagerIndicator/ViewPagerIndicator/Library/CirclePageIndicator.cs
@@ -98,7 +98,7 @@ public bool IsCentered ()
return mCentered;
}
- public void SetPageColor (int pageColor)
+ public void SetPageColor (Color pageColor)
{
mPaintPageFill.Color = pageColor;
Invalidate ();
@@ -109,7 +109,7 @@ public int GetPageColor ()
return mPaintPageFill.Color;
}
- public void SetFillColor (int fillColor)
+ public void SetFillColor (Color fillColor)
{
mPaintFill.Color = fillColor;
Invalidate ();
@@ -140,7 +140,7 @@ public int GetOrientation ()
return mOrientation;
}
- public void SetStrokeColor (int strokeColor)
+ public void SetStrokeColor (Color strokeColor)
{
mPaintStroke.Color = strokeColor;
Invalidate ();
View
14 ViewPagerIndicator/ViewPagerIndicator/Library/TitlePageIndicator.cs
@@ -61,8 +61,8 @@ public interface OnCenterItemClickListener
private int mScrollState;
private Paint mPaintText = new Paint ();
private bool mBoldText;
- private int mColorText;
- private int mColorSelected;
+ private Color mColorText;
+ private Color mColorSelected;
private Path mPath;
private Paint mPaintFooterLine = new Paint ();
private IndicatorStyle mFooterIndicatorStyle;
@@ -125,7 +125,7 @@ public TitlePageIndicator (Context context, IAttributeSet attrs, int defStyle) :
mBoldText = a.GetBoolean (Resource.Styleable.TitlePageIndicator_selectedBold, defaultSelectedBold);
float textSize = a.GetDimension (Resource.Styleable.TitlePageIndicator_textSize, defaultTextSize);
- int footerColor = a.GetColor (Resource.Styleable.TitlePageIndicator_footerColor, defaultFooterColor);
+ Color footerColor = a.GetColor (Resource.Styleable.TitlePageIndicator_footerColor, defaultFooterColor);
mPaintText.TextSize = textSize;
mPaintText.AntiAlias = true;
mPaintFooterLine.SetStyle (Android.Graphics.Paint.Style.FillAndStroke);
@@ -146,7 +146,7 @@ public int GetFooterColor ()
return mPaintFooterLine.Color;
}
- public void SetFooterColor (int footerColor)
+ public void SetFooterColor (Color footerColor)
{
mPaintFooterLine.Color = footerColor;
mPaintFooterIndicator.Color = footerColor;
@@ -198,12 +198,12 @@ public void SetFooterIndicatorStyle (IndicatorStyle indicatorStyle)
Invalidate ();
}
- public int GetSelectedColor ()
+ public Color GetSelectedColor ()
{
return mColorSelected;
}
- public void SetSelectedColor (int selectedColor)
+ public void SetSelectedColor (Color selectedColor)
{
mColorSelected = selectedColor;
Invalidate ();
@@ -225,7 +225,7 @@ public int GetTextColor ()
return mColorText;
}
- public void SetTextColor (int textColor)
+ public void SetTextColor (Color textColor)
{
mPaintText.Color = textColor;
mColorText = textColor;
Please sign in to comment.
Something went wrong with that request. Please try again.