


buildscript {
repositories {
jcenter()
}
}
dependencies {
implementation "cn.wzbos.android.widget:filterview:1.0.0"
}

<com.wzbos.android.widget.filter.FilterGroupViewandroid:layout_width="match_parent" android:layout_height="wrap_content" android:background="#ffffffff" android:divider="@drawable/divider" android:orientation="horizontal" android:padding="10dp" android:showDividers="middle"> <com.wzbos.android.widget.filter.FilterView android:id="@+id/area_filter" android:layout_width="0dp"
android:layout_height="match_parent"android:layout_weight="1"app:expandedViewHeight="300dp"app:text="Area" />
<com.wzbos.android.widget.filter.FilterViewandroid:id="@+id/price_filter"android:layout_width="0dp"android:layout_height="match_parent"android:layout_weight="1"app:expandedViewHeight="300dp"app:text="Price" />
<com.wzbos.android.widget.filter.FilterViewandroid:id="@+id/sort_filter"android:layout_width="0dp"android:layout_height="match_parent"android:layout_weight="1"app:collapseIcon="@mipmap/ic_filter_normal"app:expandedIcon="@mipmap/ic_filter_selected"app:expandedViewHeight="300dp"app:text="Sort" />
</com.wzbos.android.widget.filter.FilterGroupView>
FilterViewfilterView = findViewById(R.id.area_filter);
filterView.setExpandedView(view);