JoanZapata / android-iconify

Android integration of multiple icon providers such as FontAwesome, Entypo, Typicons,...
http://joanzapata.com/android-iconify
Other
3.93k stars 526 forks source link

Spin not working on Chinese 10" tablet (Jellybean) #112

Closed ch-muhammad-adil closed 9 years ago

ch-muhammad-adil commented 9 years ago

I have compiled these two modules, compile 'com.joanzapata.iconify:android-iconify-material:2.0.8' compile 'com.joanzapata.iconify:android-iconify-fontawesome:2.0.8'

then in Application initialized these modules Iconify.with(new FontAwesomeModule()) .with(new MaterialModule());

tried this as it is

< com.joanzapata.iconify.widget.IconTextView android:text="{fa-heart spin}" android:shadowColor="#22000000" android:shadowDx="3" android:shadowDy="3" android:shadowRadius="1" android:textSize="40sp" android:textColor="#FFF"/>

then there was only little rotation in the heart icon, no rotation animation worked. even i have tried refresh icon.

Anything I am missing ?

JoanZapata commented 9 years ago

I can't reproduce it. Using the exact same code the heart is spinning. Is there anything you do programmatically on this IconTextView? What's your phone and android version?

ch-muhammad-adil commented 9 years ago

So far I was doing nothing on it programmatically, but I have even tried it after that.. I am using jellybean and a 10" china tablet.

ch-muhammad-adil commented 9 years ago

Is it working fine at your end ???

JoanZapata commented 9 years ago

Yes it is. Anything in the logcat?

ch-muhammad-adil commented 9 years ago

ummm Sorry I haven't observed that.. I will let you know for sure.. :) for now I am using simple textview and will Iconify it programmatically. Just want to make sure will this spin or animation work programmatically or not ??? with same syntax "{fa-heart spin}". if it does then its fine if not then any method or example ?

JoanZapata commented 9 years ago

If you use Iconify.addIcons(textView) it does work the same as an IconTextView. But make sure you call it again if you ever change the text of the TextView.

ch-muhammad-adil commented 9 years ago

textView.setText("{fa-heart spin}"); Iconify.addIcons(textView);

right ??

JoanZapata commented 9 years ago

Yes. Which is equivalent to this, by the way:

textView.setText(Iconify.compute(this, "{fa-heart spin}", textView));
ch-muhammad-adil commented 9 years ago

it is a device issue. I have tested it at another device running on KITKAT works fine.

ch-muhammad-adil commented 9 years ago

one thing more any syntax for {iconname spin mycolor}?

ch-muhammad-adil commented 9 years ago

let me try on that device again if I can provide you log-cat.

JoanZapata commented 9 years ago

one thing more any syntax for {iconname spin mycolor}?

Yes, please checkout the README file.

it is a device issue. I have tested it at another device running on KITKAT works fine.

Thanks for your time. I'll try this on an emulator to see what's wrong with pre-4.4 devices.

ch-muhammad-adil commented 9 years ago

08-27 01:44:31.654 18273-18273/com.custom.views D/libEGL﹕ >>> 0 0 android 08-27 01:44:31.654 18273-18273/com.custom.views D/libEGL﹕ >>> 0 1 mali 08-27 01:44:31.657 18273-18273/com.custom.views D/libEGL﹕ loaded /system/lib/egl/libEGL_mali.so 08-27 01:44:31.659 18273-18273/com.custom.views D/libEGL﹕ loaded /system/lib/egl/libGLESv1_CM_mali.so 08-27 01:44:31.662 18273-18273/com.custom.views D/libEGL﹕ loaded /system/lib/egl/libGLESv2_mali.so 08-27 01:44:31.666 18273-18273/com.custom.views E/linker﹕ load_library(linker.cpp:759): library "libmaliinstr.so" not found 08-27 01:44:31.669 18273-18273/com.custom.views E/﹕ appName=com.custom.views, acAppName=com.android.cts.openglperf 08-27 01:44:31.669 18273-18273/com.custom.views E/﹕ 0 08-27 01:44:31.669 18273-18273/com.custom.views E/﹕ appName=com.custom.views, acAppName=com.android.browser 08-27 01:44:31.669 18273-18273/com.custom.views E/﹕ 0

ch-muhammad-adil commented 9 years ago

between these line i think this is the main issue...

it must be missing ... "libmaliinstr.so"

08-27 01:44:31.666 18273-18273/com.custom.views E/linker﹕ load_library(linker.cpp:759): library "libmaliinstr.so" not found 08-27 01:44:31.669 18273-18273/com.custom.views E/﹕ appName=com.custom.views, acAppName=com.android.cts.openglperf 08-27 01:44:31.669 18273-18273/com.custom.views E/﹕ 0 08-27 01:44:31.669 18273-18273/com.custom.views E/﹕ appName=com.custom.views, acAppName=com.android.browser 08-27 01:44:31.669 18273-18273/com.custom.views E/﹕ 0

ch-muhammad-adil commented 9 years ago

Kindly fix this and let me know so I can get updated version of your awesome library. and Thank you so much dear for your time.. I really appreciate your help and concern. :+1: :+1: :100:

luaz commented 9 years ago

It didn't work on Samung Galaxy S3 running Android 4.3

IconTextView iconTextView = (IconTextView) view.findViewById(R.id.iconTextView);
iconTextView.setText("{fa-cog spin}");

I believe the icon did rotate slightly if I call it multiple times, just that the spinning animation is not working.