Skip to content

Commit

Permalink
Update readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
AAkira committed Nov 3, 2015
1 parent 2832267 commit 32690f5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,22 @@ expandableLayout.setListener(new ExpandableLayoutListener() {
public void onClosed() {
}
});
```
* `ExpandableLayoutListenerAdapter`
- You can set listeners only you need.

```java

expandableLayout.setListener(new ExpandableLayoutListenerAdapter() {
@Override
public void onPreOpen() {
}

@Override
public void onPreClose() {
}
});

```

### Attributes
Expand All @@ -166,6 +182,8 @@ expandableLayout.setListener(new ExpandableLayoutListener() {
|:-:|:-:|
|ael_duration|The length of the expand or collapse animation|
|ael_expanded|The layout is expanded if you set true|
|ael_defaultChildIndex|The layout is expanded at index of child view. (Only `ExpandableRelativeLayout`)|
|ael_defaultPosition|The layout is expanded at the position. (Only `ExpandableRelativeLayout`)|
|ael_orientation|The orientation of animation(horizontal \| vertical)|
|ael_interpolator|Sets [interpolator](#interpolator)|

Expand Down Expand Up @@ -211,7 +229,7 @@ buildscript {
}
dependencies {
compile 'com.github.aakira:expandable-layout:1.3.0@aar'
compile 'com.github.aakira:expandable-layout:1.4.0@aar'
}
```

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ COMPILE_SDK_VERSION=23
BUILD_TOOLS_VERSION=22.0.1
MIN_SDK_VERSION=11
TARGET_SDK_VERSION=23
VERSION_CODE=4
VERSION_NAME=1.3.0
VERSION_CODE=5
VERSION_NAME=1.4.0

SUPPORT_APP_COMPAT_VERSION=23.0.1

Expand Down

0 comments on commit 32690f5

Please sign in to comment.