Creating a library project. It should use the theme that has been applied in the application in which this library project is used.How to implement it?It should also respond to theme changes in parent application.
Asked
Active
Viewed 1,946 times
4
-
Try this : [Sample][1].I hope it will help for you. [1]: http://stackoverflow.com/questions/15019936/android-import-library – vijay Mar 09 '15 at 13:49
-
I don't find problem wit importing library. I just want to use the theme of the parent app. – quest Mar 10 '15 at 03:56
-
is there any way to get the theme id of "Current Activity"? – quest Mar 16 '15 at 10:09
-
i am facing the same problem let me know if you find a solution – Chen May 04 '15 at 05:05
1 Answers
1
You'll need an extra level of resource abstraction - attributes. This blog post explains it pretty well with examples: http://blog.danlew.net/2011/03/03/custom_styles_in_android_libraries/

dud3rino
- 517
- 4
- 8