Skip to content
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

1.3.0 FloatingToolbar exception and MenuItem text suggestion #19

Closed
xisvaldo opened this issue Jan 13, 2017 · 2 comments
Closed

1.3.0 FloatingToolbar exception and MenuItem text suggestion #19

xisvaldo opened this issue Jan 13, 2017 · 2 comments

Comments

@xisvaldo
Copy link

When inserting FloatingToolbar in a xml file, it throws the following:
java.lang.NoSuchFieldError: floatingtoolbar_start_elevation at com.github.rubensousa.floatingtoolbar.FloatingToolbar.<init>(FloatingToolbar.java:138) at com.github.rubensousa.floatingtoolbar.FloatingToolbar.<init>(FloatingToolbar.java:93)

Also, there's a suggestion: I was looking at FloatingToolbar.addMenuItems() and realized that only images are added. It would be useful if could check if there is an item.getTitle() and add it as a TextView.

@rubensousa
Copy link
Owner

Are you overriding floatingtoolbar_start_elevation somewhere? If you are, it gets stripped from the library resources. Check out this SO post: http://stackoverflow.com/questions/37460385/android-java-lang-nosuchfielderror-rlayout-e

As you can see, this doesn't happen in the sample.

Regarding the suggestion, I'll try to see if it looks good. If it does, I'll include that in 1.4.0

@xisvaldo
Copy link
Author

Well I just "Invalidated Cache and Restarted" and seems to be all good now. Anyway, thanks for you quick answer and support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants