A practical multi-conditional filter menu, which can be seen in many apps, such as American group, Iqiyi movie tickets.

Source: Internet
Author: User
Tags iqiyi

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);

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.