Skip to content

Releases: AAkira/ExpandableLayout

v1.6.0

12 Sep 23:31
Compare
Choose a tag to compare

Modification

Bug fix

  • Fix the init layout (only ExpandableLinearLayout)
ExpandableLinearLayout expandableLayout
 = (ExpandableLinearLayout) findViewById(R.id.expandableLayout);

child.setText("Sets text from a server");
expandableLayout.initLayout(); // Recalculate size of children
  • Fix the state of expanse in recycler view (only ExpandableLinearLayout)
// you must set a ViewHolder#setIsRecyclable(false) and ExpandableLinearLayout#setInRecyclerView(true) 

@Override
public void onBindViewHolder(final ViewHolder holder, final int position) {
    holder.setIsRecyclable(false);
    holder.expandableLinearLayout.setInRecyclerView(true);
}
  • Fix code crashed if only empty ExpandableLayout added to xml #82

v1.5.1

12 Apr 10:39
Compare
Choose a tag to compare

Modification

Bug fix

  • Fix the state of expanse

v1.5.0

07 Apr 15:21
Compare
Choose a tag to compare

Modification

Enhancement

  • Add ExpandableLinearLayout
  • Add quick moving
  • Add tests using espresso

Bug fix

  • Fix how to calculate the ExpandableRelativeLayout
  • Fix behavior in the recycler view
  • Fix attribute of defaultPosition

Deprecated method

  • initLayout(boolean)
    • this method is going to be removed next release

v1.4.3

06 Mar 12:20
Compare
Choose a tag to compare

Modification

Enhancement

  • Add a test using the espresso
    • This test module is written in kotlin.

Bug fix

  • Fix complicated relative layout #35

v1.4.2

11 Feb 04:00
Compare
Choose a tag to compare

Modification

Enhancement

  • Run a test on circle ci
  • Use the library to upload to bintray

Bug fix

  • Fix saved state #34

v1.4.1

16 Dec 16:34
Compare
Choose a tag to compare

Modification

Bug fix

I fixed the problem which the expandable layout size is wrong.

v1.4.0

03 Nov 06:57
Compare
Choose a tag to compare

Modification

Add attributes

You can use these attributes only ExpandableRelativeLayout.

  • ael_defaultChildIndex
    • The layout is expanded at index of child view.
  • ael_defaultPosition
    • The layout is expanded at the position.

Attention

You cannot define isExpanded, defaultChildIndex, defaultChildPosition at the same time.
defaultChildPosition has priority over isExpanded and defaultChildIndex if you set them at the same time.

Add an option at initialize the layout

I add a option which the size is maintained to initLayout.

Bug fix

I fixed the problem which the state of expanse is wrong when it recycles.

v1.3.0

05 Oct 12:27
Compare
Choose a tag to compare

Modification

  • Remove an override method which is requestLayout()
    • In Exchange : Add a method which is initLayout()
  • Add a method which is isExpanded()

isExpanded

This method returns true if currentSize is bigger than closeSize if you use in ExpandableRelativeLayout.

v1.2.0

02 Oct 07:13
Compare
Choose a tag to compare

Modification

  • Rename attribute name
    • because of conflicting expanded attributes
  • Remove a deprecated method

v1.1.0

19 Sep 03:55
Compare
Choose a tag to compare

Modification

  • Fix recycler view
    • You must set setExpanded(boolean) in onBindViewHolder().
    • setDefaultVisibility(boolean) is deprecated.
  • Fix bug which is landscape mode.
  • Add onPreOpen() and onPreClose listener.
    • You can get notification that your expandable layout is going to open or close. So, you can set the animation synchronized with expanding animation.