Skip to content

Commit 8fab1f1

Browse files
committed
Update ReadMe
1 parent 2d5e5ef commit 8fab1f1

File tree

1 file changed

+24
-32
lines changed

1 file changed

+24
-32
lines changed

README.md

Lines changed: 24 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,41 @@
1-
## DropDownMenu
1+
## 简介
2+
一个实用的多条件筛选菜单,在很多App上都能看到这个效果,如美团,爱奇艺电影票等
23

3-
A simple practical multiple condition filter drop down menu,drop down menu style can according to your project fully customization,the repositories just offer a simple framework,not PopupWindow implement,better experience,if you have any question or have new idea about this library,via issues or pull request this library,welcome star or fork!
4-
5-
##Feature
6-
- Fully customization, you can add any view or viewGroup,do you want do
7-
- Not PopupWindow implement, better experience effort
8-
9-
##Why create this library?
10-
First of all,this my first library for github,I read a lot awesome library in create this before,but not find i want effect,so i create this.
4+
##特色
5+
- 你可以完全自定义你的菜单样式,我这里只是封装了一些实用的方法,Tab的切换效果,菜单显示隐藏等
6+
- 并非用popupWindow实现,无卡顿
117

128
##ScreenShot
139
<img src="https://raw.githubusercontent.com/dongjunkun/DropDownMenu/master/art/simple.gif"/>
1410

1511
<a href="https://raw.githubusercontent.com/dongjunkun/DropDownMenu/master/app/build/outputs/apk/app-debug.apk">Download Demo</a>
1612

17-
##Usage
18-
####Step1
19-
Add DropDownMenu in your xml
13+
##使用
14+
添加DropDownMenu 到你的布局文件,如下
2015
```
2116
<com.yyy.djk.dropdownmenu.DropDownMenu
2217
android:id="@+id/dropDownMenu"
23-
xmlns:app="http://schemas.android.com/apk/res-auto"
24-
xmlns:android="http://schemas.android.com/apk/res/android"
25-
xmlns:tools="http://schemas.android.com/tools"
2618
android:layout_width="match_parent"
2719
android:layout_height="match_parent"
28-
app:ddmenuTextSize="13px"
29-
app:ddtextUnselectedColor="@color/drop_down_unselected"
30-
app:ddtextSelectedColor="@color/drop_down_selected"
31-
app:dddividerColor="@color/gray"
32-
app:ddunderlineColor="@color/gray"
33-
app:ddmenuSelectedIcon="@mipmap/drop_down_selected_icon"
34-
app:ddmaskColor="@color/mask_color"
35-
app:ddmenuBackgroundColor="@color/white"
36-
app:ddmenuUnselectedIcon="@mipmap/drop_down_unselected_icon"
37-
tools:context=".MainActivity"/>
20+
app:ddmenuTextSize="13px" //tab字体大小
21+
app:ddtextUnselectedColor="@color/drop_down_unselected" //tab未选中颜色
22+
app:ddtextSelectedColor="@color/drop_down_selected" //tab选中颜色
23+
app:dddividerColor="@color/gray" //分割线颜色
24+
app:ddunderlineColor="@color/gray" //下划线颜色
25+
app:ddmenuSelectedIcon="@mipmap/drop_down_selected_icon" //tab选中状态图标
26+
app:ddmenuUnselectedIcon="@mipmap/drop_down_unselected_icon"//tab未选中状态图标
27+
app:ddmaskColor="@color/mask_color" //遮罩颜色,一般是半透明
28+
app:ddmenuBackgroundColor="@color/white" //tab 背景颜色
29+
...
30+
/>
3831
```
32+
我们只需要在java代码中调用下面的代码
3933

40-
####Step2
41-
Now we just need invoke setDropDownMenu(),example below
4234
```
43-
mDropDownMenu.setDropDownMenu(Arrays.asList(headers), popupViews, contentView);
35+
//tabs 所有标题,popupViews 所有菜单,contentView 内容
36+
mDropDownMenu.setDropDownMenu(tabs, popupViews, contentView);
4437
```
38+
如果你要了解更多,可以直接看源码 <a href="https://github.com/dongjunkun/DropDownMenu/blob/master/app/src/main/java/com/yyy/djk/dropdownmenu/MainActivity.java">Example</a>
4539

46-
You can see <a href="https://github.com/dongjunkun/DropDownMenu/blob/master/app/src/main/java/com/yyy/djk/dropdownmenu/MainActivity.java">Example</a>
47-
48-
##About me
49-
A android developer, like android,like google,like open source,like doing any thing interesting
40+
##关于我
41+
热爱新技术,喜欢编程 QQ:1440418246

0 commit comments

Comments
 (0)