简体   繁体   中英

Eclipse import files into project

This is for an Android project.

In the question Spin wheel control in Android , I found this link http://code.google.com/p/smooth-wheel/ .

I would like to add just the java (component) files to my project with a different directory in the source path. But smooth-wheel source has its own R.....

So the question is, How to add the java files and the R. file to my projects? so that R files of smooth-wheel will be added to MY R. file?

In DELPHI it is easy to add component.

Ideally, smooth-wheel has a .jar, that you can add to libs/ . The R will be autogenerated, and you will have two different Rs, in different namespaces (technically you already have two, your.package.R and android.R)

EDIT: If there is no .jar, just copy/merge the files from src/ and res/ , don't worry about R, it is autogenerated. Though it looks pretty amateurish from "smooth-wheel" to release with the stock icon and no .jar

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