lawdao / DropDownMenu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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>

About


Languages

Language:Java 100.0%