Skip to content

Commit 39d0418

Browse files
authored
Update README.md
1 parent 46aa289 commit 39d0418

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

README.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[![API](https://img.shields.io/badge/API-14%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=14)
2+
[![](https://jitpack.io/v/fccaikai/BottomMenuTutorial.svg)](https://jitpack.io/#fccaikai/BottomMenuTutorial)
3+
[![](https://img.shields.io/badge/Author-caikai-brightgreen.svg)](https://github.com/fccaikai)
14
### ScreenShots
25

36
![](https://ww1.sinaimg.cn/large/006tNc79gy1fdua399ng7g308w0ftwk9.gif)
@@ -22,7 +25,7 @@ allprojects {
2225

2326
```
2427
dependencies {
25-
compile 'com.github.fccaikai:BottomMenuTutorial:1.0.3'
28+
compile 'com.github.fccaikai:BottomMenuTutorial:1.0.5'
2629
}
2730
```
2831

@@ -53,6 +56,8 @@ dependencies {
5356

5457
### Usage
5558

59+
#### Defalut
60+
5661
```
5762
BottomDialog dialog = BottomDialog.newInstance("title",new String[]{"item1","item2"});
5863
/**
@@ -70,4 +75,20 @@ dialog.show(getChildFragmentManager(),"dialog");
7075
Toast.makeText(getContext(), "" + position, Toast.LENGTH_LONG).show();
7176
}
7277
});
73-
```
78+
```
79+
#### Custom
80+
custom dialog text size & color if need.
81+
in your app ```corlor.xml``` define :
82+
```
83+
   <color name="bottom_lib_dialog_item_text_color">your dialog item color</color>
84+
<color name="bottom_lib_dialog_title_text_color">your dialog title color</color>
85+
<color name="bottom_lib_dialog_cancel_text_color">your dialog cancel color1</color>
86+
```
87+
88+
```dimen.xml``` define:
89+
90+
```
91+
   <dimen name="bottom_lib_dialog_item_text">your dialog item text size,default 16sp</dimen>
92+
   <dimen name="bottom_lib_dialog_title_text">your dialog title text title,default 18sp</dimen>
93+
<dimen name="bottom_lib_dialog_cancel_text">your dialog title cancel title,default 18sp</dimen>
94+
```

0 commit comments

Comments
 (0)