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

Google Materials icons not working on IconicsTextView #17

Closed
gpulido opened this issue Mar 23, 2015 · 3 comments
Closed

Google Materials icons not working on IconicsTextView #17

gpulido opened this issue Mar 23, 2015 · 3 comments
Assignees
Labels

Comments

@gpulido
Copy link

gpulido commented Mar 23, 2015

I have registered on a customApplication the google material icons:

Iconics.registerFont(new GoogleMaterial());

And try to use it on a textview:

<android.view.IconicsTextView
                        android:id="@+id/next"
                        android:layout_width="48dp"
                        android:layout_height="wrap_content"
                        android:text="{gmd_android}"
                        android:textColor="@android:color/white"
                        android:textSize="16sp"
                        android:contentDescription="Next"/>

But the inflater tries to create it throws a null exception.
I have tried with a fontawesome icon and it works (even without it registered on the application)

If I try to use the GoogleMaterial icons through

new IconicsDrawable(getActivity(), GoogleMaterial.Icon.gmd_android)

it does work.

I don't know what is happening here:

(Using 0.7.9)

@mikepenz
Copy link
Owner

@gpulido with the newest version you don't have to register the GoogleMaterial font anymore because it is included as default. See the README ;)

And why it won't show the icon :D you have to write {gmd-android}

@mikepenz mikepenz self-assigned this Mar 23, 2015
@gpulido
Copy link
Author

gpulido commented Mar 24, 2015

@mikepenz Sorry if this is very dumb. I've been able to use the gmd-android or the gmd-edit icon. (thank for pointing me the error). But I'm trying to use the gmd-skip-next, and it is not working. I'm able to use it programatically through "gmd_skip_next" but not on the Iconicstextview.

@mikepenz
Copy link
Owner

@gpulido just tried this within an textview with the newest version. i can use {gmd-skip-next} within a textview without problems

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

No branches or pull requests

2 participants