android - How to make a animation icon on the ActionBar? -


i try make refresh icon rotating in actionbar of android application. tried follow instruction: http://techiedreams.com/android-rss-reader-part-3-action-bar-with-animated-item/

it works if copy code same in website. however, if move oncreate part, rotation looks different , strange. center of rotation seems moved top left corner of view.

how can make icon of menu item rotate in actionbar normally?

thank you.

i had same exact problem until replaced showasaction property

make sure replace refresh icon's android:showasaction="collapseactionview|ifroom" android:showasaction="ifroom"

however else you.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -