Skip to content

Commit 2bedf41

Browse files
Merge pull request #22 from cleanOK/master
dependencies and readme updated
2 parents 2d22d01 + e31d9f5 commit 2bedf41

File tree

5 files changed

+34
-16
lines changed

5 files changed

+34
-16
lines changed

README.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,36 @@ Also, read how it was done in [our blog] (https://yalantis.com/blog/how-we-devel
1919

2020
*For a working implementation, have a look at the app module*
2121

22-
1. Include the library as local library project.
22+
1. Add JitPack repository in your root build.gradle at the end of repositories:
2323

24-
2. Your hamburger on navigation menu must have exactly same coordinates as hamburger on ActionBar.
24+
~~~
25+
allprojects {
26+
repositories {
27+
...
28+
maven { url "https://jitpack.io" }
29+
}
30+
}
2531
26-
3. In your `onCreate` method you need to config and build animation with GuillotineAnimation.GuillotineBuilder
32+
~~~
33+
34+
2. Add the dependency to your app build.gradle
35+
36+
~~~
37+
dependencies {
38+
compile 'com.github.Yalantis:GuillotineMenu-Android:1.2'
39+
}
40+
~~~
41+
42+
3. You need to create a layout for the navigation menu (`guillotine.xml` in sample app), which will later open and close guillotine-style. The only tricky part here is that the navigation layout should be on top of any other content and will disappear after closing animation ends. That is why content layout (`activity.xml` in sample app) should also have hamburger icon at the same coordinates as navigation menu has.
43+
44+
4. After that all you need to do is to build animation by passing navigation layout object, navigation and content layout hamburger objects to `GuillotineAnimation.GuillotineBuilder` in your `onCreate` method
2745
2846
```java
2947
new GuillotineAnimation.GuillotineBuilder(guillotineMenu, guillotineMenu.findViewById(R.id.guillotine_hamburger), contentHamburger)
3048
.setActionBarViewForAnimation(toolbar)
3149
.build();
3250
```
33-
Here `setActionBarViewForAnimation` method enables bounce effect of ActionBar at the end of the guillotine closing animation.
51+
Here `setActionBarViewForAnimation` method enables bounce effect of Toolbar at the end of the guillotine closing animation.
3452
3553
# Misc
3654

app/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ apply plugin: 'com.android.application'
1111
apply plugin: 'com.neenbedankt.android-apt'
1212

1313
android {
14-
compileSdkVersion 23
14+
compileSdkVersion 24
1515
buildToolsVersion "23.0.3"
1616

1717
defaultConfig {
1818
applicationId "com.yalantis.guillotine.sample"
1919
minSdkVersion 15
20-
targetSdkVersion 23
21-
versionCode 2
22-
versionName "1.1"
20+
targetSdkVersion 24
21+
versionCode 3
22+
versionName "1.2"
2323
}
2424
buildTypes {
2525
release {
@@ -32,7 +32,7 @@ android {
3232
dependencies {
3333
compile project(':library')
3434
compile fileTree(dir: 'libs', include: ['*.jar'])
35-
compile 'com.android.support:appcompat-v7:23.3.0'
35+
compile 'com.android.support:appcompat-v7:24.2.1'
3636
compile 'com.jakewharton:butterknife:8.0.1'
3737
apt 'com.jakewharton:butterknife-compiler:8.0.1'
3838
}

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
jcenter()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:2.1.0'
8+
classpath 'com.android.tools.build:gradle:2.2.1'
99

1010
// NOTE: Do not place your application dependencies here; they belong
1111
// in the individual module build.gradle files
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Wed May 11 18:02:43 EEST 2016
1+
#Mon Oct 10 13:48:17 EEST 2016
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip

library/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
apply plugin: 'com.android.library'
22

33
android {
4-
compileSdkVersion 23
4+
compileSdkVersion 24
55
buildToolsVersion "23.0.3"
66

77
defaultConfig {
88
minSdkVersion 15
9-
targetSdkVersion 23
10-
versionCode 2
11-
versionName "1.1"
9+
targetSdkVersion 24
10+
versionCode 3
11+
versionName "1.2"
1212
}
1313
buildTypes {
1414
release {

0 commit comments

Comments
 (0)