Skip to content

Commit

Permalink
changed attribute name
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-alexander committed Dec 9, 2017
1 parent 42becbf commit d699cfb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
defaultConfig {
minSdkVersion 17
targetSdkVersion 26
versionCode 1
versionName "1.0"
versionCode 2
versionName "1.1"
}
buildTypes {
release {
Expand Down
2 changes: 1 addition & 1 deletion library/src/main/java/info/hoang8f/widget/FButton.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ private void parseAttrs(Context context, AttributeSet attrs) {
int attr = typedArray.getIndex(i);
if (attr == R.styleable.FButton_shadowEnabled) {
isShadowEnabled = typedArray.getBoolean(attr, true); //Default is true
} else if (attr == R.styleable.FButton_buttonColor) {
} else if (attr == R.styleable.FButton_fButtonColor) {
mButtonColor = typedArray.getColor(attr, R.color.fbutton_default_color);
} else if (attr == R.styleable.FButton_shadowColor) {
mShadowColor = typedArray.getColor(attr, R.color.fbutton_default_shadow_color);
Expand Down
2 changes: 1 addition & 1 deletion library/src/main/res/values/attrs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<resources>
<declare-styleable name="FButton">
<attr name="shadowEnabled" format="boolean" />
<attr name="buttonColor" format="color|reference" />
<attr name="fButtonColor" format="color|reference" />
<attr name="shadowColor" format="color|reference" />
<attr name="shadowHeight" format="dimension" />
<attr name="cornerRadius" format="dimension" />
Expand Down

0 comments on commit d699cfb

Please sign in to comment.