Commit 6291ad3
authored
Merge in Material Sprint feature branch to master (android#472)
* Update Material version to 1.1.0-alpha07 (android#431)
* Add button to navigate to Plant List
When the user's garden is empty, add a button prompting them to navigate to the Plant List.
This also adds a new string and some placeholder string translations.
Updated styling will be implemented in a future commit.
* Change Plant List Page to use GridLayout (android#433)
* Changed Plant List page to grid Layout with 2 columns
* Changed garden fragment to gridlayoutmanager with 2 columns
* changed appSpan count to use an integer dimension
* Turning Plant List Grid into Material Themed Cards (android#437)
* Initial commit to turn plant list grid into cards
* added dimension variable for card corner radius
* Style changes for CI
* Changed to staggered gridlayout
* Code review Changes
* Convert from drawer layout to tab layout (android#438)
* WIP commit - converting to ViewPager
* Update logic when tapping the "Add Plant" button
Also removes action from the navigation graph and adds descriptive constants for the ViewPager page index.
* run spotless
* Use childFragmentManager to preserve fragments when returning to ViewPager
* Update navigation direction for navigating from garden to plan details.
Also removes unused fragment and action entries in the nav graph.
* Clean up unused code and imports
* Add imports back
* Remove unused resources
* Add comment for getCount()
* Created Material-themed cards for My Garden Page (android#440)
* Initial commit. still work to be done with strings.xml files
* Translation placeholders and cleaned code
* replaced translations
* cleaned strings and switched to variables
* code review changes
* Add collapsing title to ViewPager (android#439)
* Add title to ViewPager
Also add a large font dimension for use in new and old code
* Collapse toolbar
Also some formatting fixes
* Maintain toolbar scroll/collapse state when navigating back to ViewPager
This requires an ID for both CoordinatorLayout and the AppBarLayout - added a comment to clarify.
* Add CollapsingToolbarLayout
Toolbar now collapses on both the My Garden and Plant List pages.
Also added fitsSystemWindows to the app bar so that the text isn't drawn under the system bar.
* Theme (android#441)
* initial commit
* formatting changes
* circleCI
* formatting
* Add app bar to plant detail page
Also moves FAB anchor to app bar and increase header image height
* grid with to integers file
* changed shape of fab
* changed shape and color of add button (android#455)
* changed colors to use ?attr
* consolidate texts and colors to use material style guide
* Added available plants header and padding to My Garden Page (android#457)
* added available plants header
* moved available plants strings
* changed available plants title to be scrollable
* Comments and cleaned code
* spotlessApply
* fixed padding in plant list page (android#464)
* fixed padding in plant list page
* margin end added
* Update tests for the new UI interface
Ignoring share button test for now, while the button is being redesigned.
* Add icons to the tab layout (android#468)
* Add icons to the tab layout
The icons are programmatically set based on the selected tab.
* Use color resources instead of hard coding color values
* Added Dark Theme (android#467)
* dark theme
* spotless
* cleaned code and changed icon color
* Update dark mode yellow
* watering needs changes
* Fix bug where FAB does not hide when clicked
* Detail Collapsing Toolbar (android#470)
* initial commit for detail menu items
* spotlessApply
* spotlessApply
* removed unused methods
* removed unused imports
* navbar code review
* fixed overlap
* Theming Changes (android#471)
* initial commit for detail menu items
* spotlessApply
* spotlessApply
* removed unused methods
* removed unused imports
* final theming changes
* styling changes to tab icons
* theme code review
* changed to requireContext
* Changed Theme and Shape Format
* Code Readability Changes (android#478)
* readability initial changes
* readability changes
* removed unused imports
* Removed use of .tag and Renamed ViewPager (android#482)
* updated viewpager name and removed tag
* removed passing of context
* switched to HashMap
* cached fragments instead of loading everytime
* declaritive hashmap
* removed null check
* Show Toolbar Animation using StateListAnimator (android#479)
* using animator
* comment formatting
* Code Style and Efficiency Changes (android#481)
* efficiency and theming changes
* clean
* Use StateListDrawable for Tabs (android#480)
* added StateListDrawable for tabs
* updated to homeviewpager
* changed to homeviewpager for merge conflict
* fixed toolbar text color
* Convert ViewPager to ViewPager2 (android#456)
* Convert ViewPager to ViewPager2
Require TabLayoutMediator to set up ViewPager2 and TabLayout; this file is taken from the ViewPager2 sample https://github.com/googlesamples/android-viewpager2.
* Programmatically set menu visibility
This is a temporary workaround; see https://issuetracker.google.com/issues/124183800 for more details.
* Use TabLayoutMediator provided by Material 1.1.0-alpha07
* Update to ViewPager version 1.0.0-alpha06
This update also fixes a bug (https://issuetracker.google.com/issues/124183800 ) and removes the need for the temporary workaround.
* Update callback to use ViewPager2's callback when a tab is selected
* Remove temporary workaround for menu visibility
Also add comment for tab text
* Return String instead of CharSequence
* Add TODO for data binding
* Update ViewPager2 version to 1.0.0-beta02
* Address PR comments + refactor
* Address PR comments
- Create new Fragment instead of fetching existing Fragment
- Bump VP2 version to 1.0.0-beta03
* Update Turkish string resources
Also removed duplicate app_name in Italian string resources
* Remove canvas nullability and related usage
* Update comment
* Address PR comments
- update Material Version to 1.1.0-alpha09
- add newlines to layout
- remove explicit clickable/focusable - not needed since onClick is set
- use ?attr where appropriate
- use app:backgroundTint for backwards compatibility
* Address PR comments
- Rename CustomCardView to MaskedCardView
* Update Gradle version
* Address PR comments
- extract tab icon logic to its own method
- set plant name on the plant detail page in the layout
- only set appbar and toolbar attributes when crossing a scrolling threshold
* Merge layer-list for back icon into a single <vector>
* Update ktlint and spotless versions
* Update colors and themes
- Change colors to use descriptive names
- Add alternative style for dark theme
* Merge layer-list for share icon into a single <vector>
Also update the back icon's circle path data and whitespace formatting
* Remove unused PopupOverlay styles
* Add Traditional and Simplified string translations1 parent f19dd1b commit 6291ad3
File tree
58 files changed
+1198
-466
lines changed- app
- src
- androidTest/java/com/google/samples/apps/sunflower
- main
- java/com/google/samples/apps/sunflower
- adapters
- views
- res
- animator
- drawable-hdpi
- drawable-mdpi
- drawable-xhdpi
- drawable-xxhdpi
- drawable
- layout
- values-de
- values-fr
- values-it
- values-ja
- values-night-v21
- values-night
- values-tr-rTR
- values-v21
- values-zh-rCN
- values-zh-rTW
- values
- gradle/wrapper
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
58 files changed
+1198
-466
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
| 157 | + | |
156 | 158 | | |
157 | 159 | | |
158 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
Lines changed: 5 additions & 60 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | | - | |
22 | 20 | | |
23 | 21 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 22 | | |
28 | | - | |
29 | | - | |
30 | 23 | | |
31 | | - | |
32 | 24 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 25 | | |
37 | 26 | | |
38 | 27 | | |
| |||
41 | 30 | | |
42 | 31 | | |
43 | 32 | | |
44 | | - | |
45 | | - | |
46 | | - | |
| 33 | + | |
| 34 | + | |
47 | 35 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 36 | + | |
| 37 | + | |
68 | 38 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
| 39 | + | |
74 | 40 | | |
75 | 41 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | 42 | | |
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | 23 | | |
26 | 24 | | |
27 | 25 | | |
| |||
30 | 28 | | |
31 | 29 | | |
32 | 30 | | |
| 31 | + | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
54 | | - | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| 60 | + | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
Lines changed: 2 additions & 39 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 21 | + | |
30 | 22 | | |
31 | 23 | | |
32 | 24 | | |
33 | 25 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | 26 | | |
39 | 27 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
| 28 | + | |
66 | 29 | | |
67 | 30 | | |
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| 35 | + | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
| |||
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
42 | | - | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
45 | 54 | | |
46 | 55 | | |
47 | 56 | | |
| |||
56 | 65 | | |
57 | 66 | | |
58 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
59 | 73 | | |
Lines changed: 66 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
0 commit comments