简体   繁体   中英

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

In other libraries I used this code:

implementation 'com.github.barteksc:android-pdf-viewer:2.3.0'

Just copy the ZoomTextView.java file in your project from the link:-

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM