@@ -7,27 +7,34 @@ Walkthrough
7
7
Following screenshots have been taken from the sample application: [ <img src =" http://developer.android.com/images/brand/en_generic_rgb_wo_45.png " />] [ 1 ]
8
8
9
9
<p align =" center " >
10
- <img src="https://github.com/vikramkakkar/SublimePicker /blob/master/img/app_info.png?raw=true" width="307 " height="512 " />
10
+ <img src="https://github.com/vikramkakkar/SublimeNavigationView /blob/master/img/app_info.png?raw=true" width="428 " height="829 " />
11
11
</p >
12
12
13
13
How the menu looks:
14
14
15
15
<p align =" center " >
16
- <img src="https://github.com/vikramkakkar/SublimePicker /blob/master/img/first_menu.png?raw=true" width="307" height="512" />
16
+ <img src="https://github.com/vikramkakkar/SublimeNavigationView /blob/master/img/first_menu.png?raw=true" width="307" height="512" />
17
17
</p >
18
18
19
19
` SublimeNavigationView ` can work with any number of menus. As an example of this, the sample application shows how to handle two of them:
20
20
21
21
<p align =" center " >
22
- <img src="https://github.com/vikramkakkar/SublimePicker/blob/master/img/second_menu.png?raw=true" width="307" height="512" />
22
+ <img src="https://github.com/vikramkakkar/SublimeNavigationView/blob/master/img/second_menu.png?raw=true" width="307" height="512" />
23
+ </p >
24
+
25
+ Switching between menus:
26
+
27
+ <p align =" center " >
28
+ <img src="https://github.com/vikramkakkar/SublimeNavigationView/blob/master/img/switch_menus_first_menu.png?raw=true" width="307" height="512" />
29
+ <img src="https://github.com/vikramkakkar/SublimeNavigationView/blob/master/img/switch_menus_second_menu.png?raw=true" width="307" height="512" />
23
30
</p >
24
31
25
32
` SublimeMenu ` supports grouping of menu items. In addition to the standard features such as defining a ` checkable ` policy, ordering etc., ` SublimeGroup ` can be expanded/collapsed - on user input, through XML definition, or programmatically:
26
33
27
34
<p align =" center " >
28
35
<span>
29
- <img src="https://github.com/vikramkakkar/SublimePicker /blob/master/img/group_collpased.png?raw=true" width="307" height="512" />
30
- <img src="https://github.com/vikramkakkar/SublimePicker /blob/master/img/group_expanded.png?raw=true" width="307" height="512" />
36
+ <img src="https://github.com/vikramkakkar/SublimeNavigationView /blob/master/img/group_collpased.png?raw=true" width="307" height="512" />
37
+ <img src="https://github.com/vikramkakkar/SublimeNavigationView /blob/master/img/group_expanded.png?raw=true" width="307" height="512" />
31
38
</span>
32
39
</p >
33
40
@@ -41,7 +48,7 @@ XML definitions are quite straight-forward. An example:
41
48
This would translate to:
42
49
43
50
<p align =" center " >
44
- <img src="https://github.com/vikramkakkar/SublimePicker /blob/master/img/item_with_hint.png?raw=true" width="307" height="512" />
51
+ <img src="https://github.com/vikramkakkar/SublimeNavigationView /blob/master/img/item_with_hint.png?raw=true" width="307" height="512" />
45
52
</p >
46
53
47
54
A ` Text ` item with an icon - and another, that shows icon space, but doesn't display an icon:
@@ -60,7 +67,7 @@ A `Text` item with an icon - and another, that shows icon space, but doesn't dis
60
67
Output:
61
68
62
69
<p align =" center " >
63
- <img src="https://github.com/vikramkakkar/SublimePicker /blob/master/img/item_with_icon.png?raw=true" width="307" height="512" />
70
+ <img src="https://github.com/vikramkakkar/SublimeNavigationView /blob/master/img/item_with_icon.png?raw=true" width="307" height="512" />
64
71
</p >
65
72
66
73
` TextWithBadge ` menu items can be presented in two forms - initialized & uninitialized. In uninitialized form, the item will display an indeterminate ` ProgressBar ` in place of ` badgeText ` :
@@ -71,7 +78,7 @@ Output:
71
78
app:valueProvidedAsync="true"/>
72
79
73
80
<p align =" center " >
74
- <img src="https://github.com/vikramkakkar/SublimePicker /blob/master/img/text_with_badge_uninitialized.png?raw=true" width="307" height="512" />
81
+ <img src="https://github.com/vikramkakkar/SublimeNavigationView /blob/master/img/text_with_badge_uninitialized.png?raw=true" width="307" height="512" />
75
82
</p >
76
83
77
84
In initialized form, the item will have its ` badgeText ` set in XML:
@@ -82,7 +89,7 @@ In initialized form, the item will have its `badgeText` set in XML:
82
89
app:badgeText="25"/>
83
90
84
91
<p align =" center " >
85
- <img src="https://github.com/vikramkakkar/SublimePicker /blob/master/img/text_with_badge_initialized.png?raw=true" width="307" height="512" />
92
+ <img src="https://github.com/vikramkakkar/SublimeNavigationView /blob/master/img/text_with_badge_initialized.png?raw=true" width="307" height="512" />
86
93
</p >
87
94
88
95
This feature can be used if the ` badgeText ` is being retrieved through a network call, or if some computation needs to be performed before it can be displayed. Once the text is available, you can display it using:
0 commit comments