diff --git a/README.md b/README.md index 56a8fb2..94826f7 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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)| @@ -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' } ``` diff --git a/gradle.properties b/gradle.properties index 55d8708..57e0c46 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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