Skip to content

Commit

Permalink
allow setting of edgeEffectPaint color
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean Wild committed Mar 16, 2016
1 parent 6b622e6 commit e96a91e
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class MarqueeTextView extends View {

static final int DEFAULT_SPEED = 10;
static int DEFAULT_PAUSE_DURATION = 10000;
static final int DEFAULT_EDGE_EFFECT_WIDTH = 20;
static final int DEFAULT_EDGE_EFFECT_WIDTH = 10;
static final int DEFAULT_EDGE_EFFECT_COLOR = Color.WHITE;

boolean marqueeEnabled = true;
Expand Down Expand Up @@ -312,4 +312,14 @@ public void setTextSize(float textSize) {
requestLayout();
}

public int getEdgeEffectColor() {
return edgeEffectColor;
}

public void setEdgeEffectColor(int edgeEffectColor) {
this.edgeEffectColor = edgeEffectColor;
renewPaint();
invalidate();
}

}

0 comments on commit e96a91e

Please sign in to comment.