How do I get ActionBarCompat to show the normal default icon (set in the application/intent-filter android:icon attribute in the manifest)? -


any clues on how actionbarcompat show default icon in pre-honeycomb devices normal honeycomb/ics action bar show? i.e. icon set in <application>/<intent-filter> android:icon attribute in manifest.

also information on how resource id android:icon helpful.

thanks

well, pre-honeycomb, you'll have change icon referenced 'home' actionbar element in actionbarhelperbase.java class. should somewhere in setupactionbar() method, so:

homeitem.seticon(r.drawable.ic_home); 

just change

homeitem.seticon(r.drawable.launcher); 

and should go. changing in honeycomb, you'll need change android:icon attributes in values-v11\styles.xml in style actionbar.

hope helps.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -