-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If I call "setIconResource" method to a button created by LayoutInflater, all layout information removed. #61
Comments
It's seems there is a bug somewhere, could you share with us your code |
Same problem applies to me. I'm using the FancyButton as the row of Recyclerview. And recyclerview has the GridLayoutManager and custom adapter. After adding below lines to adapter, the button which has iconResource as string, ruins the layout's harmony. button.setIconResource("►"); |
@brkckr could you share a demo project or a snippet so I could check the issue. |
It works like a champ when you set "IconResource" in xml side. But if you change it by programmatically, it ruins layout's harmony. Check the below images please. In addition, thank you for such a super library. @medyo |
This is a screenshot captured before I call "setIconResouce" method.
The layout of the button is borken.
The text was updated successfully, but these errors were encountered: