Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
r0adkll authored Dec 12, 2017
1 parent 2d2e3e1 commit 8fbe6f6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ public class ExampleActivity extends <Activity|FragmentActivity|ActionBarActivit
public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_example);
int primary = getResources().getColor(R.color.primaryDark);
int secondary = getResources().getColor(R.color.secondaryDark);
Slidr.attach(this, primary, secondary);
int primary = getResources().getColor(R.color.primaryDark);
int secondary = getResources().getColor(R.color.secondaryDark);
Slidr.attach(this, primary, secondary);
}

}
Expand All @@ -36,7 +36,7 @@ public class ExampleActivity extends <Activity|FragmentActivity|ActionBarActivit
public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_example);
Slidr.attach(this);
Slidr.attach(this);
}

}
Expand Down Expand Up @@ -79,7 +79,7 @@ In the xml of the fragment's view, the root view must be a FrameLayout with the

...other stuff

</android.support.design.widget.CoordinatorLayout>
</android.support.design.widget.CoordinatorLayout>
</FrameLayout>
```
Remember: you have to add new Fragments with:
Expand Down Expand Up @@ -154,6 +154,7 @@ Include this line in your gradle build file:
```groovy
compile 'com.r0adkll:slidableactivity:2.0.6'
```

<!--
For Snapshots, include these lines in your gradle files:

Expand Down

0 comments on commit 8fbe6f6

Please sign in to comment.