Skip to content

v1.6.0

Latest
Compare
Choose a tag to compare
@AAkira AAkira released this 12 Sep 23:31

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