From 0ef2a63eeedaacb7f1efe0275e913dd0dd4a94e0 Mon Sep 17 00:00:00 2001 From: Belin Wu Date: Wed, 23 Jan 2019 12:31:02 +0800 Subject: [PATCH] Edit README file --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 15cc904..297e26f 100644 --- a/README.md +++ b/README.md @@ -3,18 +3,22 @@ ![Android](https://img.shields.io/badge/platform-Android-brightgreen.svg) ![Apache](https://img.shields.io/github/license/samelody/modapter.svg) ![API](https://img.shields.io/badge/API-15%2B-brightgreen.svg) +[![Bintray](https://api.bintray.com/packages/belinwu/maven/modapter/images/download.svg)](https://bintray.com/belinwu/maven/modapter/_latestVersion) Modular adapter for Android RecyclerView. **DO NOT USE THIS LIBRARY IN PRODUCTION UNTIL V1.0.0 IS RELEASED.** -# Download +# Installation +Add the following dependency to your `build.gradle` file: ```groovy -implementation "com.samelody.modapter:modapter:0.1.0" +dependencies { + implementation 'com.samelody.modapter:modapter:0.1.0' +} ``` -# Getting started +# Usage ```java // create a ModularAdapter object instead of creating new Subclass of RecyclerView.Adapter. @@ -36,7 +40,7 @@ manager.setList(list); adapter.notifyDataSetChanged(); ``` -# Developer Doc +# Docs ## ItemManager