Skip to content

Commit 6bf46b2

Browse files
authored
Update README.md
1 parent 57fffd3 commit 6bf46b2

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,21 @@
22
SimpleFragments is a library aimed at making flexible navigation easy on Android while removing unneccessary lifecycle complications. The library makes it easy to create map-based navigation, stack-based navigation or a combination of both. Back presses and rotation are handled.
33

44
# Download
5-
Not available yet
5+
Add JitPack repo in your root build.gradle at the end of repositories:
6+
```java
7+
allprojects {
8+
repositories {
9+
...
10+
maven { url "https://jitpack.io" }
11+
}
12+
}
13+
```
14+
Add the dependency:
15+
```java
16+
dependencies {
17+
compile 'com.github.JayyyR:SimpleFragments:v0.1-alpha'
18+
}
19+
```
620

721
# Usage
822
The library provides 4 main classes for you to utlize: The FragmentMapActivity, the FragmentMapFragment, the FragmentStackActivity, and the FragmentStackFragment. These are all designed to be "shell" components for you to put your fragments into. The fifth class is SimpleFragment. This class extends the Android Fragment and is what needs to be used for all your Fragments in the app. It provides a few convenience methods that will make your life easier.

0 commit comments

Comments
 (0)