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

Some icons and code completion is not working #11

Closed
CoderHanXin opened this issue Aug 20, 2015 · 4 comments
Closed

Some icons and code completion is not working #11

CoderHanXin opened this issue Aug 20, 2015 · 4 comments

Comments

@CoderHanXin
Copy link

When I set app:materialIcon="pen", it's OK.
But when I set app:materialIcon="calendar-text", I get error like this.

Error:(62, 35) String types not allowed (at 'materialIcon' with value 'calendar-text').

PS: Autocomplete is not work. And I put the font file inside the assets already.

@quentin-st
Copy link

As you can see in the README, you have to use underscores (_) instead of dashes (-) as word separator. You will get rid of the String types not allowed error.

Are you sure that you put the font file inside the right assets directory?

@CoderHanXin
Copy link
Author

@chteuchteu Thank you for your help.

I put font file inside src/main/assets.
LIVE previews works now, but code completion is still not working.

@CoderHanXin CoderHanXin changed the title Some icons not work Some icons and code completion is not working Aug 21, 2015
@code-mc
Copy link
Owner

code-mc commented Aug 21, 2015

Code complete not working is probably because you have something configured in your android studio settings that breaks the whole thing. First thing I hear about it anyways.

@CoderHanXin
Copy link
Author

@code-mc Thank you, there is something wrong with my android sutdio.
I find answer from http://stackoverflow.com/questions/30684613/android-studio-xml-editor-autocomplete-not-working-with-support-libraries.
Code complete is OK now.

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

No branches or pull requests

3 participants