Project Address: Https://github.com/dongjunkun/DropDownMenu
Effect Diagram:
Introduction
A useful multi-conditional filter menu, which can be seen in many apps, such as American group, Iqiyi movie tickets, etc.
My blog Build Wheels--android common multi-criteria handsome selection menu implementation ideas (similar to American group, Iqiyi movie Ticket drop-down menu) features
Multi-level menu support
You can completely customize your menu style, I just encapsulate a few practical methods, tab switch effect, menu display hidden effect, etc.
Not implemented with Popupwindow, no lag
Use
Add Dropdownmenu to your layout file, as follows. <com.yyydjk.library.dropdownmenu android:id= "@+id/dropdownmenu". Android: Layout_width= "Match_parent" 04. android:layout_height= "Match_parent" 05. App:ddmenutextsize= "13SP" //tab font size 06. App:ddtextunselectedcolor= "@color/drop_down_unselected" //tab color 07 is not selected. App:ddtextselectedcolor= "@color/drop_down_selected" //tab selected color 08. App:dddividercolor= "@color/gray" //Split Line Color 09. App:ddunderlinecolor= "@color/gray" //underline color 10. app:ddmenuselectedicon= "@mipmap/drop_down_selected_icon" //tab selected status icon 11. app:ddmenuunselectedicon= "@mipmap/drop_down_unselected_icon"//tab unchecked status icon 12. App:ddmaskcolor= "@color/mask_color" //matte color, generally translucent 13. App:ddmenubackgroundcolor= "@color/white" //tab background color 14. ... />
We just need to call the following code in Java Code 1.//tabs all headings,popupviews all menus,contentview content 2. Mdropdownmenu.setdropdownmenu (Tabs, popupviews, contentview);