I'm trying to add the following into my project:
https://github.com/florent37/AwesomeBar
I'm not exactly sure how to do this after reading the readme on the github. I tried adding:
compile 'com.github.florent37:awesomebar:1.0.3'
Into the dependancies of my gradle file but this caused an error.
And then how do I actually use this action bar? Do I just create a new .xml file with the code in the readme? Then the java code into a class?
Use implementation
instead of compile
:
implementation 'com.github.florent37:awesomebar:1.0.3'
And make sure you have:
jcenter()
maven { url "https://jitpack.io" }
In your root build.gradle
repositories.
And then how do I actually use this action bar? Do I just create a new .xml file with the code in the readme? Then the java code into a class?
Check your import in layout xml. It should be -
xmlns:app="http://schemas.android.com/apk/res-auto"
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.