Android resources and their automatically generated references simplify the development of one app a great deal. But they also complicate the reuse of Android activities in multiple pr开发者_高级运维ojects, and in general of any component that uses resources.
Library projects are a limited alternative. A project can depend on many library projects, but a library project can't depend on another, and adding additional JAR dependencies is not straightforward.
How do you reuse Android components (not plain old Java code)? Any tips and tricks?
I have some tips, tricks, and tools wrapped up in the Android Parcel Project.
精彩评论