Android基于多个条件列表过滤:DropDownMenu

n6bg 9年前

DropDownMenu是一个用于Android的基于多个条件列表过滤。

<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"/>
  • 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) {

    }});

项目主页:http://www.open-open.com/lib/view/home/1430375658505