Skip to content

Commit 3249e90

Browse files
committed
Merge branch 'master' into develop
2 parents aa7a163 + 1fd8e1f commit 3249e90

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

README.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,26 @@ ViewGroup backed by RecyclerView.Adapter = magic
66
# Gradle Dependency
77
Easily reference the library in your Android projects using this dependency in your module's `build.gradle` file:
88

9-
```Gradle
10-
dependencies {
11-
compile 'com.commit451:adapterlayout:1.0.0'
12-
}
13-
```
9+
Add it in your root build.gradle at the end of repositories:
10+
11+
allprojects {
12+
repositories {
13+
...
14+
maven { url "https://jitpack.io" }
15+
}
16+
}
17+
Step 2. Add the dependency
18+
19+
dependencies {
20+
compile 'com.github.Commit451:AdapterLayout:1.0.0'
21+
}
1422

1523
# Usage
1624
See the sample project for a full sample.
1725
```java
1826
//CheeseAdapter is a RecyclerView adapter
1927
CheeseAdapter cheeseAdapter = new CheeseAdapter();
20-
adapterLinearLayout adapterLinearLayout =
28+
adapterLinearLayout adapterLinearLayout = (AdapterLinearLayout) findViewById(R.id.adapter_linear_layout);
2129
adapterLinearLayout.setAdapter(cheeseAdapter);
2230
```
2331
Later, when you get your data set:

0 commit comments

Comments
 (0)