Android Studio slidingmenu Import/configuration Floatmath no symbol resolution found

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.