Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kaiinui/android-awesome-libraries
There are many libraries which helps your android development!
https://github.com/kaiinui/android-awesome-libraries
List: android-awesome-libraries
Last synced: 4 months ago
JSON representation
There are many libraries which helps your android development!
- Host: GitHub
- URL: https://github.com/kaiinui/android-awesome-libraries
- Owner: kaiinui
- License: mit
- Created: 2014-08-09T22:52:21.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-15T04:07:28.000Z (about 9 years ago)
- Last Synced: 2024-05-23T04:15:05.939Z (9 months ago)
- Homepage:
- Size: 410 KB
- Stars: 111
- Watchers: 5
- Forks: 19
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- fucking-lists - android-awesome-libraries
- awesomelist - android-awesome-libraries
- lists - android-awesome-libraries
- collection - android-awesome-libraries
- ultimate-awesome - android-awesome-libraries - There are many libraries which helps your android development!. (Other Lists / Julia Lists)
README
android-awesome-libraries
=========================Index
---- [Support](https://github.com/kaiinui/android-awesome-libraries#support)
- [Network](https://github.com/kaiinui/android-awesome-libraries#network)
- [Rest Client](https://github.com/kaiinui/android-awesome-libraries#rest-client)
- [Object Serialization](https://github.com/kaiinui/android-awesome-libraries#object-serialization)
- [Database](https://github.com/kaiinui/android-awesome-libraries#database)
- [Network Image Handling](https://github.com/kaiinui/android-awesome-libraries#network-image-handling)
- [Event Pub/Sub](https://github.com/kaiinui/android-awesome-libraries#event-pubsub)
- [Gesture](https://github.com/kaiinui/android-awesome-libraries#gesture)
- [Utility](https://github.com/kaiinui/android-awesome-libraries#utility)
- [Cloud Handling](https://github.com/kaiinui/android-awesome-libraries#cloud-handling)
- [Social Network Handling](https://github.com/kaiinui/android-awesome-libraries#social-network-handling)
- [DI](https://github.com/kaiinui/android-awesome-libraries#di)
- [View Model Binding](https://github.com/kaiinui/android-awesome-libraries#view-model-binding)
- [UI](https://github.com/kaiinui/android-awesome-libraries#ui)
- [Album Handling](https://github.com/kaiinui/android-awesome-libraries#album-handling)
- [Rx](https://github.com/kaiinui/android-awesome-libraries#rx)
- [Promise](https://github.com/kaiinui/android-awesome-libraries#promise)
- [Security](https://github.com/kaiinui/android-awesome-libraries#security)
- [Debug Utilitiy](https://github.com/kaiinui/android-awesome-libraries#debug-utility)
- [Gradle Plugin](https://github.com/kaiinui/android-awesome-libraries#gradle-plugin)
- [Testing](https://github.com/kaiinui/android-awesome-libraries#testing)Support
---- [TransitionsBackport](guerwan/TransitionsBackport : https://github.com/guerwan/TransitionsBackport)
- [Android Device Compatibility](https://github.com/mixi-inc/Android-Device-Compatibility) - Compatibility package project for android device difference.
- Android Support Annotations
```java
private void displayName(@NonNull String name) {
// name can not be null
}
``````java
private void receiveDrawableRes(@DrawableRes int resId) {
// resId must be Drawable Resource ID
}
```- [gradle-retrolabmda](https://github.com/evant/gradle-retrolambda) - lambda suppor for android!
```java
mButton.setOnClickListener((View v) -> {
// do something here
});
```- [icepick](https://github.com/frankiesardo/icepick) - Android Instance State made easy
```java
@Icicle String username; // This will be automatically saved and restored@Override public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Icepick.restoreInstanceState(this, savedInstanceState);
}@Override public void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
Icepick.saveInstanceState(this, outState);
}
```- [Michelangelo](https://github.com/RomainPiel/Michelangelo) - Layout inflation library for Android based on annotations
```java
@InflateLayout(R.layout.custom_view)
public class MyCustomView extends FrameLayout {public MyCustomView(Context context) {
super(context);
}@AfterInflate
public void updateTextView() {
((TextView) findViewById(R.id.my_text_view)).setText("hey!");
}
}
```- [AndroidAnnotations](http://androidannotations.org/)
```java
@Background
void someBackgroundWork(String aParam, long anotherParam) {
[...]
}
``````java
@UiThread
void doInUiThread(String aParam, long anotherParam) {
[...]
}
```- [HeaderGridView](https://github.com/maurycyw/HeaderGridView) - Header view support for GridView!
```java
gridView.addHeaderView(View v);
```- [HeaderFooterGridView](https://github.com/recruit-mp/android-HeaderFooterGridView) - HeaderFooterGridView supports adding header rows and footer rows to GridView
```java
final HeaderFooterGridView headerFooterGridView = (HeaderFooterGridView) findViewById(R.id.HeaderFooterGridView);
HeaderView headerView = new HeaderView(context);
headerFooterGridView.addHeaderView(headerView);
FooterView footerView = new FooterView(context);
headerFooterGridView.addFooterView(footerView);mAdapter = new HeaderFooterGridViewAdapter(this);
headerFooterGridView.setAdapter(mAdapter);
```Network
---- [Volley](https://android.googlesource.com/platform/frameworks/volley)
```java
RequestQueue queue = Volley.newRequestQueue(this);
String url = "SOMEURL";JsonObjectRequest jsObjRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener() {
@Override
public void onResponse(JSONObject response) {
// TODO
}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
// TODO
}
});queue.add(jsObjRequest);
```- [ion](https://github.com/koush/ion)
```java
Ion.with(context)
.load("http://example.com/thing.json")
.asJsonObject()
.setCallback(new FutureCallback() {
@Override
public void onCompleted(Exception e, JsonObject result) {
// do stuff with the result or error
}
});
```- [okhttp](https://github.com/square/okhttp) - An **HTTP+SPDY** client for Android and Java applications
```java
OkHttpClient client = new OkHttpClient();String run(String url) throws IOException {
Request request = new Request.Builder()
.url(url)
.build();Response response = client.newCall(request).execute();
return response.body().string();
}
```REST Client
---- [Retrofit](http://square.github.io/retrofit/)
```java
public interface GitHubService {
@GET("/users/{user}/repos")
List listRepos(@Path("user") String user);
}
```Object Serialization
---- [Gson](https://code.google.com/p/google-gson/)
```java
BagOfPrimitives obj = new BagOfPrimitives();
Gson gson = new Gson();
String json = gson.toJson(obj);
```Database
---- [ActiveAndroid](https://github.com/pardom/ActiveAndroid)
```java
Category restaurants = new Category();
restaurants.name = "Restaurants";
restaurants.save();
```- [GreenDAO](https://github.com/greenrobot/greenDAO)
```java
List joes = userDao.queryBuilder()
.where(Properties.FirstName.eq("Joe"))
.orderAsc(Properties.LastName)
.list();
```Network Image Handling
---- [Picasso](http://square.github.io/picasso/)
```java
Picasso.with(context).load("http://i.imgur.com/DvpvklR.png").into(imageView);
```- [Universal Image Loader](https://github.com/nostra13/Android-Universal-Image-Loader)
```java
// Load image, decode it to Bitmap and display Bitmap in ImageView (or any other view
// which implements ImageAware interface)
imageLoader.displayImage(imageUri, imageView);
```##### really configurable!
```java
// DON'T COPY THIS CODE TO YOUR PROJECT! This is just example of ALL options using.
// See the sample project how to use ImageLoader correctly.
DisplayImageOptions options = new DisplayImageOptions.Builder()
.showImageOnLoading(R.drawable.ic_stub) // resource or drawable
.showImageForEmptyUri(R.drawable.ic_empty) // resource or drawable
.showImageOnFail(R.drawable.ic_error) // resource or drawable
.resetViewBeforeLoading(false) // default
.delayBeforeLoading(1000)
.cacheInMemory(false) // default
.cacheOnDisk(false) // default
.preProcessor(...)
.postProcessor(...)
.extraForDownloader(...)
.considerExifParams(false) // default
.imageScaleType(ImageScaleType.IN_SAMPLE_POWER_OF_2) // default
.bitmapConfig(Bitmap.Config.ARGB_8888) // default
.decodingOptions(...)
.displayer(new SimpleBitmapDisplayer()) // default
.handler(new Handler()) // default
.build();
```[Glide](https://github.com/bumptech/glide) - An image loading and caching library for Android focused on smooth scrolling
```java
Glide.with(this).load("http://goo.gl/h8qOq7").into(imageView);
```Event Pub/Sub
---- [EventBus](https://github.com/greenrobot/EventBus)
```java
eventBus.post(event);
``````java
eventBus.register(this);
public void onEvent(AnyEventType event) {
// TODO: React to the event!
}
```- [Otto](http://square.github.io/otto/)
```java
bus.post(new AnswerAvailableEvent(42));
``````java
@Subscribe public void answerAvailable(AnswerAvailableEvent event) {
// TODO: React to the event somehow!
}
```Gesture
---- [android-gesture-detectors](https://github.com/Almeros/android-gesture-detectors)
Utility
---- [Bolts](https://github.com/BoltsFramework/Bolts-Android) - a collection of low-level libraries designed to make developing mobile apps easier
```java
final ParseQuery query = ParseQuery.getQuery("Student");
query.orderByDescending("gpa");
findAsync(query).onSuccessTask(new Continuation, Task>() {
public Task then(Task> task) throws Exception {
List students = task.getResult();
students.get(0).put("valedictorian", true);
return saveAsync(students.get(0));
}
}).onSuccessTask(new Continuation>>() {
public Task> then(Task task) throws Exception{
ParseObject valedictorian = task.getResult();
return findAsync(query);
}
}).onSuccessTask(new Continuation, Task>() {
public Task then(Task> task) throws Exception {
List students = task.getResult();
students.get(1).put("salutatorian", true);
return saveAsync(students.get(1));
}
}).onSuccess(new Continuation() {
public Void then(Task task) throws Exception {
// Everything is done!
return null;
}
});
```- [routable-android](https://github.com/usepropeller/routable-android) - routes.rb for Android
```java
Router.sharedRouter().map("users/:id", UserActivity.class);
Router.sharedRouter().map("users/new/:name/:zip", NewUserActivity.class);
``````java
Router.sharedRouter().open("users/16");
Router.sharedRouter().open("users/new/Clay/94303");
```- [android-intents](https://github.com/d-tarasov/android-intents) - A collection of well-known Android intents for most common actions
```java
Intent intent = IntentUtils.sendEmail(to, subject, body);
startActivity(Intent.createChooser(intent, "TEST"));
```- [GAlette](https://github.com/uPhyca/GAlette) - Tracking events with Google Analytics by annotations
```java
@SendEvent(category = "HelloWorld", action = "sayHello", label="%1$s")
String sayHello (String name) {
return format("Hello, %s.", name);
}
```- [Paraphrase](https://github.com/JakeWharton/paraphrase) - compile-safe format string builders.
```xml
Hello, {other_name}! My name is {my_name}.
``````java
CharSequence greeting = Phrase.greeting()
.other_name("GitHub user")
.my_name("Jake Wharton")
.build(this);
```- [esperandro](https://github.com/dkunzler/esperandro) - Easy SharedPreference Engine foR ANDROid
```java
String superFancyPreference = preferences.superFancyPreferenceKey()
preferences.superFancyPreferenceKey(superFancyPreference)
```- [Android Priority Job Queue](https://github.com/path/android-priority-jobqueue)
```java
public void onSendClick() {
final String status = editText.getText().toString();
if(status.trim().length() > 0) {
jobManager.addJobInBackground(new PostTweetJob(status));
editText.setText("");
}
}
```- [Android Saripaar](https://github.com/ragunathjawahar/android-saripaar) - UI Validation Library
```java
@Required(order = 1)
@Email(order = 2)
private EditText emailEditText;@Password(order = 3)
@TextRule(order = 4, minLength = 6, message = "Enter at least 6 characters.")
private EditText passwordEditText;@ConfirmPassword(order = 5)
private EditText confirmPasswordEditText;@Checked(order = 6, message = "You must agree to the terms.")
private CheckBox iAgreeCheckBox;
```- [ObjectCache](https://github.com/iainconnor/ObjectCache)
```java
MyObject myObject = new MyObject("foo");
cacheManager.put("myKey", myObject);
```- [GPUImage for Android](https://github.com/CyberAgent/android-gpuimage#gpuimage-for-android)
```java
mGPUImage = new GPUImage(this);
mGPUImage.setGLSurfaceView((GLSurfaceView) findViewById(R.id.surfaceView));
mGPUImage.setImage(imageUri); // this loads image on the current thread, should be run in a thread
mGPUImage.setFilter(new GPUImageSepiaFilter());
```- [Amalgam](https://github.com/nohana/Amalgam) - Common codes for Android
```java
ToastUtils.showOnUiThread(activity, "SOMESTRING", Toast.LENGTH_SHORT);
``````java
isMainThread() // Check if current thread is the main thread.
```- [Android Checkout](https://github.com/serso/android-checkout) - Android In-App Billing made easy.
```java
checkout.start();
// you only need this if this activity starts purchase process
checkout.createPurchaseFlow(new PurchaseListener());
// you only need this if this activity needs information about purchases/SKUs
inventory = checkout.loadInventory();
inventory.whenLoaded(new InventoryLoadedListener())
```- [AsyncJobLibrary](https://github.com/Arasthel/AsyncJobLibrary)
```java
new AsyncJob.AsyncJobBuilder()
.doInBackground(new AsyncJob.AsyncAction() {
@Override
public Boolean doAsync() {
// Do some background work
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
return true;
}
})
.doWhenFinished(new AsyncJob.AsyncResultAction() {
@Override
public void onResult(Boolean result) {
Toast.makeText(context, "Result was: " + result, Toast.LENGTH_SHORT).show();
}
}).create().start();
```Cloud Handling
---- [Driven](https://github.com/bingzer/driven) - A unified API calls for different cloud storage providers
```java
StorageProvider provider = new Dropbox();
provider.authenticate(credentials);// list all files in the root
provider.listAsync(new Task>(){
public void onComplete(List files){
...
}
});
```Social Network Handling
---- [AndroidSocialNetworks](https://github.com/antonkrasov/AndroidSocialNetworks) - easy work with Facebook, Twitter, LinkedIn and Google
```java
mSocialNetworkManager = (SocialNetworkManager) getFragmentManager().findFragmentByTag(SOCIAL_NETWORK_TAG);if (mSocialNetworkManager == null) {
mSocialNetworkManager = SocialNetworkManager.Builder.from(getActivity())
.twitter(<< TWITTER API TOKEN >>, << TWITTER API SECRET >>)
.linkedIn(<< LINKED_IN API TOKEN >>, << LINKED_IN API TOKEN >>, "r_basicprofile+rw_nus+r_network+w_messages")
.facebook()
.googlePlus()
.build();
getFragmentManager().beginTransaction().add(mSocialNetworkManager, SOCIAL_NETWORK_TAG).commit();
}
```DI
---- [ButterKnife](https://github.com/JakeWharton/butterknife)
```java
@InjectView(R.id.user) EditText username;
@InjectView(R.id.pass) EditText password;@OnClick(R.id.submit) void submit() {
// TODO call server...
}
```- [Dagger](http://square.github.io/dagger/)
```java
@Inject
Thermosiphon(Heater heater) {
this.heater = heater;
}
```View Model Binding
---- [android-binding](https://github.com/gueei/AndroidBinding) - MVVM for Android
```java
public StringObservable message = new StringObservable();
...
message.set("Hello MVVM!"); // will change the model and view
```UI
--- [AboutLibraries](https://github.com/mikepenz/AboutLibraries)

- [SuperToasts](https://github.com/JohnPersano/SuperToasts)

- [PhotoView](https://github.com/chrisbanes/PhotoView) - ImageView for Android that supports zooming, by various touch gestures.

- [Fading Action Bar](https://github.com/ManuelPeinado/FadingActionBar)

- [BlurEffectForAndroidDesign](https://github.com/PomepuyN/BlurEffectForAndroidDesign)

- [SlidingMenu](https://github.com/jfeinstein10/SlidingMenu)

- [cardslib](https://github.com/gabrielemariotti/cardslib)

- [CardsUI for Android](https://github.com/Androguide/cardsui-for-android)

- [ColorArt](https://github.com/MichaelEvans/ColorArt)

- [Android-Rate](https://github.com/hotchemi/Android-Rate)

- [GlassActionBar](https://github.com/ManuelPeinado/GlassActionBar)

- [emojicon](https://github.com/rockerhieu/emojicon)

- [IonIconView](https://github.com/MarsVard/IonIconView)

- [ExtendedCalendarView](https://github.com/tyczj/ExtendedCalendarView)

- [StickyListHeaders](https://github.com/emilsjolander/StickyListHeaders)

- [StickyGridHeaders](https://github.com/TonicArtos/StickyGridHeaders)

- [Android Staggered Grid](https://github.com/etsy/AndroidStaggeredGrid)

- [JazzyViewPager](https://github.com/jfeinstein10/JazzyViewPager)
- [Android ViewPagerIndicator](https://github.com/JakeWharton/Android-ViewPagerIndicator)

- [RoudedImageView](https://github.com/vinc3m1/RoundedImageView)

- [Enhanced ListView](https://github.com/timroes/EnhancedListView)

- [Android Sliding Up Panel](https://github.com/umano/AndroidSlidingUpPanel)

- [CWAC TouchListView](https://github.com/commonsguy/cwac-touchlist) - A Drag-and-Drop Capable ListView
- [AdapterViewAnimator](https://github.com/SimonVT/adapterviewanimator)
```java
AdapterViewAnimator animator = new AdapterViewAnimator(adapterView);
data.add(item);
adapter.notifyDataSetChanged();
animator.animate();
```- [MPAndroidChart](https://github.com/PhilJay/MPAndroidChart)


- [ListViewAnimations](https://github.com/nhaarman/ListViewAnimations) - allows developers to easily add animations to ListView items

Album handling
---- [DeviceAlbums](https://github.com/nohana/DeviceAlbums) (Compatibility library for dealing with various device photo albums.)
- [Laevatein](https://github.com/nohana/Laevatein)
- RoboGuice
Rx
---- [RxJava](https://github.com/Netflix/RxJava)
```java
Subscription sub = Observable.from(1, 2, 3, 4, 5)
.subscribeOn(Schedulers.newThread())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(observer);
```Promise
---- [JDefferred](https://github.com/jdeferred/jdeferred)
```java
Deferred deferred = new DeferredObject();
Promise promise = deferred.promise();
promise.done(new DoneCallback() {
public void onDone(Object result) {
...
}
}).fail(new FailCallback() {
public void onFail(Object rejection) {
...
}
}).progress(new ProgressCallback() {
public void onProgress(Object progress) {
...
}
}).always(new AlwaysCallback() {
public void onAlways(State state, Object result, Object rejection) {
...
}
});
```Security
---- [Conceal](http://facebook.github.io/conceal/) - Fast cryptographic operations for Android by Facebook
Debug Utility
---- [Hugo](https://github.com/JakeWharton/hugo)
```java
@DebugLog
public String getName(String first, String last) {
SystemClock.sleep(15); // Don't ever really do this!
return first + " " + last;
}
```- [Timber](https://github.com/JakeWharton/timber) - A logger.
- [scalpel](https://github.com/JakeWharton/scalpel)

- [dspec](https://github.com/lucasr/dspec) - An easy way to draw UI specs on top of your Android UI

Gradle Plugin
---- [Gradle Android AspectJ Plugin](https://github.com/uPhyca/gradle-android-aspectj-plugin)
- [gradle-android-appiconoverlay](https://github.com/splatte/gradle-android-appiconoverlay)
- [License Gradle Plugin](https://github.com/hierynomus/license-gradle-plugin)Testing
---### Unit
- JUnit
- [Robospock](http://robospock.org/)```groovy
def "should display hello text"() {
given:
def textView = new TextView(Robolectric.application)and:
def hello = "Hello"when:
textView.setText(hello)then:
textView.getText() == hello
}
```### Assert
- [AssertJ-Android](https://github.com/square/assertj-android)
```java
assertThat(frodo.getName()).isEqualTo("Frodo");
assertThat(frodo).isNotEqualTo(sauron)
.isIn(fellowshipOfTheRing);
assertThat(sauron).isNotIn(fellowshipOfTheRing);
```### Fixture
- [RobotGirl](https://github.com/rejasupotaro/RobotGirl)
```java
Factory.define(
// This will guess the User class
new Definition(User.class) {
@Override
public Bundle set(Bundle attrs) {
attrs.putString("name", "John");
attrs.putBoolean("admin", false);
return attrs;
}
// This will use the User class (Adming would have been guessed)
}, new Definition(User.class, "admin") {
@Override
public Bundle set(Bundle attrs) {
attrs.putString("name", "Admin");
attrs.putBoolean("admin", true);
return attrs;
}
});
```### Mock
- [Mockito](https://code.google.com/p/mockito/)
```java
LinkedList mockedList = mock(LinkedList.class);
when(mockedList.get(0)).thenReturn("first");
when(mockedList.get(1)).thenThrow(new RuntimeException());
```### UI Test
- [Appium](http://appium.io/)
- [Espresso](https://code.google.com/p/android-test-kit/wiki/Espresso)
```java
public void testSayHello() {
onView(withId(R.id.name_field))
.perform(typeText("Steve"));
onView(withId(R.id.greet_button))
.perform(click());
onView(withText("Hello Steve!"))
.check(matches(isDisplayed()));
}
```Others
---[buck](http://facebook.github.io/buck/) - A high-performance Android & Java build tool
Documentation
---[doclava](https://code.google.com/p/doclava/)

Contribution
===Just fork & edit & send pull-request on GitHub!
####Policy
1. Official Website over GitHub Repository for links.
2. Should put codes which reflects the library.
3. For UI libraries, put demonstorations (AniGIF, PNG, Movies).And I am considering to ...
1. Put reference links for each libraries.
2. Separate pages for each categories.
3. Separate UI categories.####Maintainer
kaiinui (https://github.com/kaiinui)
####and...
I am building a website to browse awesome libraries! https://github.com/kaiinui/droidgems