Importing a custom view in Android Studio

妖精的绣舞 提交于 2019-12-08 04:31:58

问题


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?


回答1:


  1. Import it as a module via File -> Import Module
  2. Add as a dependency to your project. File -> Project Structure -> Your Module -> Dependencies Tab -> Add -> Module Dependency.
  3. Include in your settings.gradle via include ':module name'
  4. Clean & Build


来源:https://stackoverflow.com/questions/24637176/importing-a-custom-view-in-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!