【开源】DropDownMenu
DropDownMenu
- https://github.com/JayFang1993/DropDownMenu
介绍:
多个筛选条件并列的下拉过滤菜单,类似58同城的多条件过滤筛选 。运行效果:
![]()
使用说明:
|
1
2
3
4
5
6
|
<com.jayfang.dropdownmenu.DropDownMenu android:orientation="horizontal" android:layout_width="fill_parent" android:id="@+id/menu" android:background="@color/ripple_material_dark" android:layout_height="60dp"/> |
设置
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
mMenu.setMenuCount(3); mMenu.setShowCount(6); mMenu.setShowCheck(true); mMenu.setMenuTitleTextSize(16); mMenu.setMenuTitleTextColor(Color.BLACK); mMenu.setMenuListTextSize(16); mMenu.setMenuListTextColor(Color.BLACK); mMenu.setMenuBackColor(Color.GRAY); mMenu.setMenuPressedBackColor(Color.CYAN); mMenu.setCheckIcon(R.drawable.ico_make); mMenu.setUpArrow(R.drawable.arrow_up); mMenu.setDownArrow(R.drawable.arrow_down); mMenu.setMenuItems(ArrayList); mMenu.setMenuSelectedListener(new OnMenuSelectedListener(){ @Override public void onSelected(View listview,int RowIndex, int ColumnIndex) { }}); |
其中mMenu.setShowCount(6);表示菜单列表的最大显示数目,如果你的菜单项足够多,想显示长点,这个数目可以设置的大些。
posted on 2015-05-08 11:48 wasdchenhao 阅读(591) 评论(0) 收藏 举报

浙公网安备 33010602011771号