Skip to content

Foldable list usage

Alex Vasilkov edited this page Feb 24, 2017 · 8 revisions
  1. Add FoldableListLayout to you layout:

    <com.alexvasilkov.foldablelayout.FoldableListLayout
       android:id="@+id/foldable_list"
       android:layout_width="match_parent"
       android:layout_height="wrap_content" />
    
  2. Set up an adapter (BaseAdapter):

    FoldableListLayout foldableListLayout = (FoldableListLayout) findViewById(R.id.foldable_list);
    foldableListLayout.setAdapter(...);
    
Clone this wiki locally