[英]import java class from GitHub
I need to import this library into my project but I don't know how to do it because there isn't a link or something like that. 我需要将该库导入到我的项目中,但是我不知道如何做,因为没有链接或类似的东西。 How can I do it.
我该怎么做。 Here is the library: https://github.com/nomanr/ZoomTextView
这是库: https : //github.com/nomanr/ZoomTextView
In other libraries I used this code: 在其他库中,我使用了以下代码:
implementation 'com.github.barteksc:android-pdf-viewer:2.3.0' 实现'com.github.barteksc:android-pdf-viewer:2.3.0'
Just copy the ZoomTextView.java file in your project from the link:- 只需从链接中复制ZoomTextView.java文件到您的项目中:
https://github.com/nomanr/ZoomTextView/blob/master/app/src/main/java/noman/zoomtextview/ZoomTextView.java https://github.com/nomanr/ZoomTextView/blob/master/app/src/main/java/noman/zoomtextview/ZoomTextView.java
and use that in creating your view. 并在创建视图时使用它。 So, there is no need of implementing anything in your gradle.
因此,无需在gradle中实现任何功能。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.