Skip to content

Commit

Permalink
introduces Configuration and Style toString methods
Browse files Browse the repository at this point in the history
  • Loading branch information
keyboardsurfer committed Apr 28, 2013
1 parent 6d0dfbd commit f782804
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,13 @@ public Configuration build() {
return new Configuration(this);
}
}

@Override
public String toString() {
return "Configuration{" +
"durationInMilliseconds=" + durationInMilliseconds +
", inAnimationResId=" + inAnimationResId +
", outAnimationResId=" + outAnimationResId +
'}';
}
}
27 changes: 27 additions & 0 deletions library/src/de/keyboardsurfer/android/widget/crouton/Style.java
Original file line number Diff line number Diff line change
Expand Up @@ -460,4 +460,31 @@ public Style build() {
return new Style(this);
}
}

@Override
public String toString() {
return "Style{" +
"backgroundColorResourceId=" + backgroundColorResourceId +
", backgroundDrawableResourceId=" + backgroundDrawableResourceId +
", backgroundColorValue=" + backgroundColorValue +
", isTileEnabled=" + isTileEnabled +
", textColorResourceId=" + textColorResourceId +
", heightInPixels=" + heightInPixels +
", heightDimensionResId=" + heightDimensionResId +
", widthInPixels=" + widthInPixels +
", widthDimensionResId=" + widthDimensionResId +
", gravity=" + gravity +
", imageDrawable=" + imageDrawable +
", imageResId=" + imageResId +
", imageScaleType=" + imageScaleType +
", textSize=" + textSize +
", textShadowColorResId=" + textShadowColorResId +
", textShadowRadius=" + textShadowRadius +
", textShadowDy=" + textShadowDy +
", textShadowDx=" + textShadowDx +
", textAppearanceResId=" + textAppearanceResId +
", paddingInPixels=" + paddingInPixels +
", paddingDimensionResId=" + paddingDimensionResId +
'}';
}
}

0 comments on commit f782804

Please sign in to comment.