I've seen plenty of links that tell me how to create a custom view, but how how do you import an already existing one. I downloaded one and it looks like a whole project. How is it implemented into another project?
- Import it as a module via File -> Import Module
- Add as a dependency to your project. File -> Project Structure -> Your Module -> Dependencies Tab -> Add -> Module Dependency.
- Include in your settings.gradle via
include ':module name'
- Clean & Build
来源:https://stackoverflow.com/questions/24637176/importing-a-custom-view-in-android-studio