About Eclipse and Idea import library files, we use the Pulltorefresh (pull refresh drop load) component of the library as an example to explain specifically.
Pulltorefresh Download Address: Https://github.com/chrisbanes/Android-PullToRefresh
Our goal is to import the Library folder into Eclipse or idea.
One, idea to import library file steps
1, first we need to have a project, not to create a bar
2, right click the project name click Open Module Settings (F4)
3, you can see such an interface
Next, click the Green plus sign in the middle section to import module
Find the directory of library class libraries to import
After clicking OK, the new interface selects the first option Create module from existing sources, and then the next step is to know that the import operation is complete
4, and then you can see this interface, the middle of a library more than one folder
5, then click on the right side of the Green plus button to select the third module Dependency, pay attention to the middle section to select the directory you want to import library files, that is, at this point in the middle of the interface to select the Demo folder, in the Green button to add
6, you can see that there is a library folder can choose to select OK and then OK to end the setting
7, this is to be able to see your project more than a library folder
Open the Library folder to see the contents of the folder,
8, we add a library in the main activity class to check whether the import is successful, no error can be imported
Second, Eclipse import library file steps
1, Import
2, choose Android/existing Android Code into Workspace
3, select Library folder directory, remember to select Copy projects into workspace
4, you can see the project directory more library
5, right Key library select Properties (at the bottom)
Click Is Library--"OK"
6, then right click the project selection properties to import library files add add to select the Library folder to import
7, and then use the library file to provide classes to detect whether the import is correct (note that the project and library files need to be in the same directory, that is, the same work space)