Skip to content

Commit 8437f8a

Browse files
committed
update readme
1 parent 7d34e98 commit 8437f8a

File tree

1 file changed

+21
-23
lines changed

1 file changed

+21
-23
lines changed

README.md

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,57 +5,55 @@
55
### SetUp
66
#### Gradle
77

8-
9-
#####Step 1. Add the JitPack repository to your build file
8+
9+
##### Step 1. Add the JitPack repository to your build file
1010

1111
Add it in your root build.gradle at the end of repositories:
1212

1313
```
14-
allprojects {
15-
repositories {
16-
...
17-
maven { url 'https://jitpack.io' }
18-
}
14+
allprojects {
15+
repositories {
16+
...
17+
maven { url 'https://jitpack.io' }
1918
}
19+
}
2020
```
2121
##### Step 2. Add the dependency
2222

2323
```
2424
dependencies {
25-
compile 'com.github.fccaikai:BottomMenuTutorial:1.0.1'
26-
}
25+
compile 'com.github.fccaikai:BottomMenuTutorial:1.0.1'
26+
}
2727
```
2828

29-
####Maven
29+
#### Maven
3030

31-
#####Step 1. Add the JitPack repository to your build file
31+
##### Step 1. Add the JitPack repository to your build file
3232

3333

3434
```
3535
<repositories>
36-
<repository>
37-
<id>jitpack.io</id>
38-
<url>https://jitpack.io</url>
39-
</repository>
40-
</repositories>
36+
<repository>
37+
<id>jitpack.io</id>
38+
<url>https://jitpack.io</url>
39+
</repository>
40+
</repositories>
4141
```
4242

4343
##### Step 2. Add the dependency
4444

4545
```
4646
4747
<dependency>
48-
<groupId>com.github.fccaikai</groupId>
49-
<artifactId>BottomMenuTutorial</artifactId>
50-
<version>1.0.1</version>
51-
</dependency>
48+
<groupId>com.github.fccaikai</groupId>
49+
<artifactId>BottomMenuTutorial</artifactId>
50+
<version>1.0.1</version>
51+
</dependency>
5252
```
5353

5454
### Usage
5555

5656
```
57-
58-
5957
BottomDialog dialog = BottomDialog.newInstance("title",new String[]{"item1","item2"});
6058
dialog.show(getChildFragmentManager(),"dialog");
6159
//add item click listener
@@ -64,5 +62,5 @@ BottomDialog dialog = BottomDialog.newInstance("title",new String[]{"item1","ite
6462
public void click(int position) {
6563
Toast.makeText(getContext(), "" + position, Toast.LENGTH_LONG).show();
6664
}
67-
});
65+
});
6866
```

0 commit comments

Comments
 (0)