Giter Site home page Giter Site logo

dropdownmenu's Introduction

DropDownMenu

多条件筛选菜单,比58,赶集软件中的要好的多

##效果展示

效果

##用法 <example.fussen.dropdownmenu.DropDownMenu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/dropDownMenu" android:layout_width="match_parent" android:layout_height="match_parent" app:dividerColor="@color/blue_app" app:maskColor="@color/mask_color" app:menuBackgroundColor="@color/base_title_color" app:menuSelectedIcon="@drawable/ic_img_up" app:menuTextSize="16sp" app:menuUnselectedIcon="@drawable/ic_img_down" app:textSelectedColor="@color/blue_app" app:textUnselectedColor="@color/drop_down_unselected" app:underlineColor="@color/blue_app" />

自定义属性

<declare-styleable name="DropDownMenu">
    <!--下划线颜色-->
    <attr name="underlineColor" format="color" />
    <!--分割线颜色(菜单栏)-->
    <attr name="dividerColor" format="color" />
    <!--tab选中颜色-->
    <attr name="textSelectedColor" format="color" />
    <!--tab未选中颜色-->
    <attr name="textUnselectedColor" format="color" />
    <!--tab 背景颜色-->
    <attr name="menuBackgroundColor" format="color" />
    <!--遮罩颜色,一般是半透明-->
    <attr name="maskColor" format="color" />
    <!--字体大小-->
    <attr name="menuTextSize" format="dimension" />
    <!--tab选中状态图标-->
    <attr name="menuSelectedIcon" format="reference" />
    <!--tab未选中状态图标-->
    <attr name="menuUnselectedIcon" format="reference" />
</declare-styleable>

##apk下载 点击下载apk

我的博客

欢迎关注我们的微信公共号:AppCode

扫描下面二维码即可关注

dropdownmenu's People

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.