Commit f2c16b7
authored
Bottom Navigation (#778)
* added simple bottom navigation bar
* adding a new behaviour that hides the bottom bar when scrolling down the content, but shows it when scrolling up
* cleaning up the bottombar, proper inheritance
* added tabswitcher button to bottomnavigationbar
* enabling buttons in bottom bar based on state
* removing all scrolling layout flags from the xml, we use the OmnibarScrolling for that
* adding snapping behaviour to the bottom bar
* cleaning up the behaviour
* added missing menu for browser activity
* added experiment decorator that will handle UI for different experiments
* implemented decorator variants as per current designs
* PopupMenu also knows about the experiment we are running
* added swipe to refresh
* using bottom bar for now
* cleaning up the code
* cleaning up
* binding all buttons in bottom bar
* added popupmenu that anchors to the bottombar
* we can now decorate the toolbar based on the experiment
* added experiment variants for the bottom navigation
* always showing the omnibar background
* no need for old custom webview, scroll is already properly supported
* removing pull to refresh for now
* using the search experiment by default
* removed the second experiment, binding popup and bottom bar click listeners
* added new icons for bottom bar and popup menu
* popup menu now also respect light / dark theme
* using new color attribute for dark / light theme
* ignoring variant tests for now, we are lying
* bottom bar is only visible if the omnibar has no focus
* the search icon is shown only when the serp has focus, and the privacy grade works the opposite way
* cleaning up the tabs switcher and removing its animation
* updating version for internal release
* proper padding of items in bottom bar
* remove unused file
* add new tabs screen
* we have a new activity to show tabs with the experiment
* we only use the new activity if the experiment is on
* more ui work
* Update popup_window_browser_bottom_tab_menu.xml
checkbox should also be tinted
* all toolbars should be the same
* ui tweaks with Robert
* improved elevation for the bottom bar
* ensure keyboard is not shown if the omnibar does not have focus
* search icon / privacy grade should be properly updated
* ensure grade button is hidden
* added pixels to track experiment engagement
* added missing fire icon pixel
* ensure we also animate the bottom bar after animating the toolbar
* moving search next to the fire icon
* added proper background for the bottom bar
* ensure that the widget cta is sitting in top of the bottom navigation bar
* added delay to keyboard animation so it doesn't look wonky
* ensure cta container respects the bottom bar height
* remove the animation when hiding the keyboard
* make sure that the first time the container shows we respect the bottom bar height
* updated pixel values for the experiment
* swapped order of icons in bottom bar
* adding tests for the variant manager
* updated version for release
* fixed tds hast test
* fixed etag test
* enable for now
* improved color selection for api 21
* fixing vector drawables so they show the proper path
* these tests should be running
* addressing some PR comments
* cleaning up double assignation
* clean up some comments
* more code cleanup
* swap experiment with feature for readibility
* revert experiments to original values, it's not this PR responsibility to remove them
* updating experiment names
* proper reference
* ensure all pixels trigger the variant key
* revert wrong variant change
* cleaning up colors and selectors
* no need for this
* cleaning up the toolbar, make sure we show the icons for both experiments
* returning experiments back to original distibution
* hide new menu buttons when in bottomnav mode
* no need for this selector because we use theming now
* ensure the omnibar is using full width
* ensure widget container is shown properly
* removing the behaviour so the omnibar is properly updated
* revert this to what it was
* revert this to fix tests
* proper style for checkbox
* cleaning up state and visibility of the toolbar
* updated etag for tests
* revert tdstest changes
* cleanup references
* add missing pixel after opening a new tab
* move this to the decorator
* duplicate call
* better method naming
* remove duplicate call for this method
* ensure bottombar is visible after opening a new tab
* another redundant call
* renaming bottom bar only icons
* no longer used
* proper icon name
* removing unnecessary method
* fix color reference pointing to wrong attribute1 parent 0be58cf commit f2c16b7
File tree
63 files changed
+1938
-418
lines changed- app/src
- androidTest/java/com/duckduckgo/app
- browser
- statistics
- main
- java/com/duckduckgo/app
- about
- bookmarks/ui
- brokensite
- browser
- omnibar
- ui
- di
- feedback/ui/common
- global
- icon/ui
- privacy/ui
- settings
- statistics
- pixels
- tabs/ui
- res
- color
- drawable
- layout
- values-v23
- values
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
63 files changed
+1938
-418
lines changedLines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
611 | 611 | | |
612 | 612 | | |
613 | 613 | | |
614 | | - | |
| 614 | + | |
615 | 615 | | |
616 | | - | |
| 616 | + | |
| 617 | + | |
617 | 618 | | |
618 | 619 | | |
619 | 620 | | |
620 | | - | |
| 621 | + | |
621 | 622 | | |
622 | 623 | | |
623 | 624 | | |
| 625 | + | |
624 | 626 | | |
625 | 627 | | |
626 | 628 | | |
| |||
630 | 632 | | |
631 | 633 | | |
632 | 634 | | |
633 | | - | |
| 635 | + | |
634 | 636 | | |
635 | 637 | | |
636 | | - | |
| 638 | + | |
| 639 | + | |
637 | 640 | | |
638 | 641 | | |
639 | 642 | | |
| |||
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
46 | 63 | | |
47 | 64 | | |
48 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
237 | 241 | | |
238 | 242 | | |
239 | 243 | | |
| |||
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | 42 | | |
48 | 43 | | |
49 | 44 | | |
| |||
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | 75 | | |
81 | 76 | | |
82 | 77 | | |
| |||
Lines changed: 1 addition & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
| |||
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
43 | | - | |
| 42 | + | |
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | 48 | | |
55 | 49 | | |
56 | 50 | | |
| |||
Lines changed: 19 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | | - | |
| 30 | + | |
| 31 | + | |
29 | 32 | | |
30 | | - | |
31 | | - | |
| 33 | + | |
| 34 | + | |
32 | 35 | | |
| 36 | + | |
33 | 37 | | |
34 | | - | |
35 | | - | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
62 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
63 | 73 | | |
64 | 74 | | |
65 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
66 | 79 | | |
67 | 80 | | |
68 | 81 | | |
0 commit comments