File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,18 +6,26 @@ ViewGroup backed by RecyclerView.Adapter = magic
66# Gradle Dependency
77Easily 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
1624See the sample project for a full sample.
1725``` java
1826// CheeseAdapter is a RecyclerView adapter
1927CheeseAdapter cheeseAdapter = new CheeseAdapter ();
20- adapterLinearLayout adapterLinearLayout =
28+ adapterLinearLayout adapterLinearLayout = ( AdapterLinearLayout ) findViewById( R . id . adapter_linear_layout);
2129adapterLinearLayout. setAdapter(cheeseAdapter);
2230```
2331Later, when you get your data set:
You can’t perform that action at this time.
0 commit comments