Is it possible to set an android icon from a drawable in a separate jar?

Posted by Rpond on Stack Overflow See other posts from Stack Overflow or by Rpond
Published on 2010-03-20T13:43:49Z Indexed on 2010/03/20 13:51 UTC
Read the original article Hit count: 246

Filed under:
|

I want to set a menu option icon for a drawable that is in another jar inside an xml file.

<item android:id="@+id/my_location"
      android:title="My Location"
      android:icon="@+drawable/my_location">

Instead of drawable/my_location have something like com.somelib.R.drawable.someDrawable.

I can set this in onCreateOptionsMenu but was just wondering if it could be done via the xml file.

© Stack Overflow or respective owner

Related posts about android

Related posts about android-sdk