Create Drawable At Runtime And Add Into Resources
I create Drawable for my Android application at runtime. These Drawables are generated from font icon FontAwesome. I'm searching a way to add these drawables into Resources of my A
Solution 1:
You can't add a drawable to your project resources at runtime. These are compiled into your APK when you create the app. What you can do is create the drawable at runtime and hold a reference to it for as long as you need it to be reused throughout the application lifecycle (of course, make sure you don't accidentally leak any memory if you choose this route).
Post a Comment for "Create Drawable At Runtime And Add Into Resources"