erikflowers / weather-icons

215 Weather Themed Icons and CSS
https://github.com/erikflowers/weather-icons
6.95k stars 855 forks source link

No Android support #159

Closed ghost closed 8 years ago

ghost commented 8 years ago

The font currently doesn't work with android devices like fontawesome does. Just using the identified shortcuts, f00d, doesn't produce anything. Not sure if I'm missing something. Any plans for a workable solution for mobile devices?

enzocano commented 8 years ago

This font seems to be working fine in my android app. I did the following:

<TextView android:id="@+id/txvPrueba" android:text="@string/wi_cloud" android:layout_width="wrap_content" android:layout_height="wrap_content"/>

Typeface weatherFont = Typeface.createFromAsset(getContext().getAssets(), "fonts/weathericons.ttf"); txvPrueba.setTypeface(weatherFont);

ghost commented 8 years ago

Good to hear but how did you define your icons in the weathericons.xml?

enzocano commented 8 years ago

I don't defined anything, just use https://github.com/erikflowers/weather-icons/blob/master/values/weathericons.xml and put the resource in the TextView txvPrueba.setText(context.getString(R.string.wi_cloudy)); I do not understand what you want to define

ghost commented 8 years ago

I see what I was doing wrong now. Appreciate your quick responses and guidance in solving my problem.