Giter Site home page Giter Site logo

kinghom / dropdownmenuplus Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 66668/dropdownmenuplus

0.0 1.0 0.0 4.28 MB

github上多个版本DropDownMenu的综合,补充了省市区三级筛选,多条件筛选,默认选中,集成更方便,源码已加注释,修改更快捷

Java 100.00%

dropdownmenuplus's Introduction

筛选器 加强版

github上多个版本DropDownMenu的综合,补充了缺少的效果,修改了部分bug,使用集成更方便,具体源码已经注释,修改更快捷。 注:该demo没有实现一个条件的多选样式,需要自己实现

所有的样式都在DropMenuAdapter的getView()中,小伙伴们可以自己切换运行,查看效果。

(1)省市区三级筛选的效果图: (第一级的不限的样式可以在第二级以后就可以设置不显示,这个坑小伙伴们自己实现吧,代码中已经标注)

(2)五个条件+单选样式的多条件筛选效果图两个:(可以根据该处代码设置N个条件的筛选)

(3)单个gridView 和单个ListView效果图: (这是前辈大神的源码,小做修改就可以使用)

(4)两个gridView效果图:(这是前辈大神的demo,两个gridView的样式可以类推到N个GridView的样式,就如同我的第二个gif图,就是参考该处实现的。不过这里有bug,复用item的时候,选中状态会混乱,就像这个gif的演示单选item混乱,这里的一个解决思路是用数据源的数据保存item状态,虽然对数据不友好,但是考虑的代码少,简单高效,请参考第二个gif源码实现)

(5)省市等两级联动效果图:(这也是前辈大神的源码,没有改动,该处实现效果很好,没有发现bug,可以直接使用)

欢迎star fork

dropdownmenuplus's People

Contributors

66668 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.