Slidingmenu is a third-party open-source slide control. is a good interaction logic.
There are many good apps that use slidingmenu such as QQ and CSDN Android client
Its GitHub homepage: https://github.com/jfeinstein10/SlidingMenu
Before the configuration we need to download its zip and extract it from its homepage.
The following is a slidingmenu configuration process:
Slidingmenu is different from open source frameworks such as Eventbus and requires manual configuration. Comparatively troublesome.
First, we'll unzip the downloaded zip file to
After that, modify the Build.gradle in the "Slidingmenu\library" directory:
Android {
Compilesdkversion XX
Buildtoolsversion "XX"
Defaultconfig {
Minsdkversion XX
Targetsdkversion XX
}
Modify the version of the current project, such as
Before modification:
1 Android {2 compilesdkversion3 buildtoolsversion "17.0.0" 4 5 defaultconfig {6 minsdkversion 7 7 Targetsdkversion8 }
After modification:
1 Android {2 compilesdkversion3 buildtoolsversion "23.0.3" 4 5 defaultconfig {6 minsdkversion 7 Targetsdkversion8 }
Then click File->new->import Module in Android studio to select the Slidingmenu\library folder and then determine
Then wait for his build to complete and it will appear:
Symbol Floatmath not found
This is because Android 6.0 is not supported after using Floatmath (). We just have to change it into math.
The path where the file is located is: App\libs\slidingmenu\library\src\com\jeremyfeinstein\slidingmenu\lib\customviewabove.java
Then rebuild
Then add the file dependencies dependency
Then you can use the Slidingmenu happily.
Here is the effect of a small demo implementation:
For the Code section, please refer to my next blog post.
Android Studio slidingmenu Import/configuration Floatmath no symbol resolution found