From 6ffb5023582d0903a36db6d2af33aa2f75744230 Mon Sep 17 00:00:00 2001 From: houxg Date: Sun, 11 Sep 2016 13:51:16 +0800 Subject: [PATCH] Update README.md Add gradle usage --- README.md | 38 +++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 7c777ac..f93da05 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,31 @@ # FlexLayout flex layout in Android! +##Usage +- Step 1 + Add these to your project's build.gradle +``` +allprojects { + repositories { + ... + maven { url "https://jitpack.io" } + } + } +``` +- Step 2 + Add dependency +``` +dependencies { + compile 'com.github.houxg:FlexLayout:1.2' + } +``` + ##Attrs - justify-content - align-content - align-item -- rowDividerHeight -- itemDividerWidth +- rowGap +- colGap ##Example ###Flex @@ -23,18 +42,3 @@ flex layout in Android! --- ###Justify space around ![](https://raw.githubusercontent.com/houxg/ScreenShot/master/FlexLayout/justify_space_around.jpg) -##Useage -``` - - -    ...views that you want to be flex... - - -``` \ No newline at end of file