Skip to content

Commit

Permalink
Allow the selector to be fill not just outline
Browse files Browse the repository at this point in the history
  • Loading branch information
HowardOcasta committed Jul 2, 2020
1 parent 57d2173 commit 4e2b804
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@ public void setSelectorColor(@ColorInt int color) {
}
}

@SuppressWarnings("unused")
public void setSelectorStyle(Paint.Style style) {
if (this.mSelectorPaint != null) {
this.mSelectorPaint.setStyle(style);
this.invalidate();
}
}

@SuppressWarnings("unused")
public void setSelectorColorResource(@ColorRes int color) {
if (color != 0) {
Expand Down

0 comments on commit 4e2b804

Please sign in to comment.