Created
November 20, 2015 20:47
-
-
Save Alelak/aba031c325b7ddfece91 to your computer and use it in GitHub Desktop.
Materialup code snippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MaterialUp.getPosts(context, page, MaterialUp.SORT.POPULAR, new MaterialUpCallback() { // use MaterialUp.SORT.LATEST for latest posts | |
@Override | |
public void onSuccess(List <Post> posts, Response response) { | |
// do stuff with posts! | |
} | |
@Override | |
public void onFailure(Request request, IOException e) { | |
// show a toast! | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repositories { | |
maven { url "https://jitpack.io" } | |
} | |
dependencies { | |
// ... other dependencies here | |
compile'com.github.Alelak:materialup:1.1.0' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment