Releases: AAkira/ExpandableLayout
Releases · AAkira/ExpandableLayout
v1.6.0
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
v1.5.0
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
v1.4.2
v1.4.1
v1.4.0
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
Modification
- Remove an override method which is
requestLayout()
- In Exchange : Add a method which is
initLayout()
- In Exchange : Add a method which is
- 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
v1.1.0
Modification
- Fix recycler view
- You must set
setExpanded(boolean)
inonBindViewHolder()
. setDefaultVisibility(boolean)
is deprecated.
- You must set
- Fix bug which is landscape mode.
- Add
onPreOpen()
andonPreClose
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.