For a while, Android beginners, looking at various examples online, are hereby recorded.
Note: This tutorial is intended for third-party libraries that use the Android studio architecture like Slidingmenu.
Begin:
The first step, go to GitHub download Slidingmenu (: https://github.com/jfeinstein10/SlidingMenu), download down on your computer should look like this:
The second step is to build an Android Studio project:
The third step is to set up a model in our Slidingmenudemo project, which avoids many of the changes mentioned in the tutorial gradle, but there are a few details to note:
Select Android Library:
The model name was established:
The establishment should be this way: and the picture circle of the place no, the main file within the 2 folders 1 files all deleted
Fifth step: Go back to the first step of your Slidingmenu-master folder and enter Slidingmenu-master\library (res, SRC, Androidmanifest.xml), copy the following three files to the main folder:
Sixth step: Android Studio copy the file src folder name changed to Java:
Finally, add dependencies to the project:
Add in order of numbers: Slidingmenu-master dependencies:
OK, to here, basically is done, click Ok,ide will automatically recompile build project dependencies, next we practice a hand: (JDK6 above will appear source code error, Floatmath modified into math, on the line)
Recommended Blog:http://blog.csdn.net/yangyu20121224/article/details/9258275, he wrote the Android layout very well
Android Studio Import third-party library (slidingmenu) tutorial