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 )
1
4
### ScreenShots
2
5
3
6
![ ] ( https://ww1.sinaimg.cn/large/006tNc79gy1fdua399ng7g308w0ftwk9.gif )
@@ -22,7 +25,7 @@ allprojects {
22
25
23
26
```
24
27
dependencies {
25
- compile 'com.github.fccaikai:BottomMenuTutorial:1.0.3 '
28
+ compile 'com.github.fccaikai:BottomMenuTutorial:1.0.5 '
26
29
}
27
30
```
28
31
@@ -53,6 +56,8 @@ dependencies {
53
56
54
57
### Usage
55
58
59
+ #### Defalut
60
+
56
61
```
57
62
BottomDialog dialog = BottomDialog.newInstance("title",new String[]{"item1","item2"});
58
63
/**
@@ -70,4 +75,20 @@ dialog.show(getChildFragmentManager(),"dialog");
70
75
Toast.makeText(getContext(), "" + position, Toast.LENGTH_LONG).show();
71
76
}
72
77
});
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