Commit 9722476
Remove Casa framework & simplify samples structure (#275)
* Delete the outdated button widget demo code.
- "rv" is not recommended and "glance" is the preferred widget framework.
- Sizing on those widgets is off. The new canonical layouts are recommended.
* Delete the outdated list widget demo code.
- "rv" is not recommended and "glance" is the preferred widget framework.
- Sizing on those widgets is off. The new canonical layout contain example of lists and are recommended.
* Delete the outdated image widget demo code.
- Glance library's demo directory has code samples for individual components.
Here is example of Image widget:
https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:glance/glance-appwidget/integration-tests/demos/src/main/java/androidx/glance/appwidget/demos/ImageAppWidget.kt;bpv=1
* Align the AppWidgets showcase entrypoint to highlight canonical layout samples.
The main "AppWidgets" page now displays link to the canonical layout showcase page and then below it, demonstrates the functionality to pin and show widget information.
* Adjust size and preview of the weather widget in platform samples.
- 4x2 is the recommended size for such widget
- avoid 3x? sizes
- Uses glance loading layout resource instead of the local xml
- Update the preview image
* Update background color of the xml based weather widget
- To closely match the appWidgetBackground color used in glance.
* Update Glance weather widget to use Scaffold.
- The Scaffold component in glance handles the background color, widget radius for you.
- For the inner content, calculate widget radius based on the padding and system radius.
* Align the AppWidgets showcase entrypoint to highlight canonical layout samples.
The main "AppWidgets" page now displays link to the canonical layout showcase page and then below it, demonstrates the functionality to pin and show widget information.
* fixup! Update Glance weather widget to use Scaffold.
* Update the readMe section with screenshots of canonical widget layouts
* Update the readMe section with screenshots of canonical widget layouts
* Update the readMe section with screenshots of canonical widget layouts
* Replace Casa framework with a lighter structure
* Remove Casa from these following modules:
- accessibility
- camera2
- connectivity call notification
- graphics pdf
- graphics ultrahdr
- privacy transparency
- storage
* Remove Casa from these following modules:
- connectivity
- location
- media
- privacy
* Fix permissions module
* Add appwidgets & constraintlayout samples
* Add more user interface samples
* Add last samples
* Update build.yml (#277)
Change to upload-artifact@v4
* Add MinSdkBox composable to wrap samples using recent APIs
* Fix Activity insets
* Add missing test dependencies
Add various lint ignore checks on minSdk
* Update README.md
- Remove samples README.md as it has been unreliably generated recently
- We may reinvest in the idea later on
* Remove duplicate MAIN/LAUNCHER intent filters from samples
* Temporarily ignore a flaky test in PiPMovieActivityTest
* Refactor: Replace `Area` with `ApiSurface` for better context
Replaced the `Area` data class with `ApiSurface` to more accurately represent the categories of samples in the app. Updated all references in `NavGraph`, `SampleDemo`, and `CatalogScreen` to reflect this change. The update introduces the `ApiSurface` interface and its implementations to categorize the different areas of platform features and functionality demonstrated by the samples.
* Temporarily disable unit tests in CI
Disables unit tests in the CI build workflow.
* Replace Casa framework with a lighter structure
* Remove Casa from these following modules:
- accessibility
- camera2
- connectivity call notification
- graphics pdf
- graphics ultrahdr
- privacy transparency
- storage
* Remove Casa from these following modules:
- connectivity
- location
- media
- privacy
* Fix permissions module
* Add appwidgets & constraintlayout samples
* Add more user interface samples
* Add last samples
* Add MinSdkBox composable to wrap samples using recent APIs
* Fix Activity insets
* Add missing test dependencies
Add various lint ignore checks on minSdk
* Update README.md
- Remove samples README.md as it has been unreliably generated recently
- We may reinvest in the idea later on
* Remove duplicate MAIN/LAUNCHER intent filters from samples
* Temporarily ignore a flaky test in PiPMovieActivityTest
* Refactor: Replace `Area` with `ApiSurface` for better context
Replaced the `Area` data class with `ApiSurface` to more accurately represent the categories of samples in the app. Updated all references in `NavGraph`, `SampleDemo`, and `CatalogScreen` to reflect this change. The update introduces the `ApiSurface` interface and its implementations to categorize the different areas of platform features and functionality demonstrated by the samples.
* Temporarily disable unit tests in CI
Disables unit tests in the CI build workflow.
* Rebase app widgets description from main branch
---------
Co-authored-by: Shamali P <shamalip@google.com>
Co-authored-by: Scott Stanchfield <scott@javadude.com>
Co-authored-by: Hoyt Summers Pittman <secondsun@gmail.com>1 parent 32bdebc commit 9722476
File tree
178 files changed
+3112
-2178
lines changed- .github/workflows
- .idea
- app
- src
- androidTest/java/com/example/platform/app
- main
- java/com/example/platform/app
- res
- drawable-v24
- mipmap-anydpi-v26
- values
- build-logic
- src/main/kotlin/com.example.platform.plugin
- gradle
- wrapper
- samples
- accessibility
- src/main/java/com/example/platform/accessibility
- base
- camera/camera2
- src/main/java/com/example/platform/camera
- imagecapture
- preview
- connectivity
- audio
- src/main/java/com/example/platform/connectivity/audio
- bluetooth
- ble
- src/main
- java/com/example/platform/connectivity/bluetooth/ble
- server
- companion
- src/main
- java/com/example/platform/connectivity/bluetooth/cdm
- callnotification
- src/main
- java/com/example/platform/connectivity/callnotification
- telecom
- src/main
- java/com/example/platform/connectivity/telecom
- call
- res/drawable
- graphics
- pdf
- src/main/java/com/example/platform/graphics/pdf
- ultrahdr
- src/main
- java/com/example/platform/graphics/ultrahdr
- display
- edit
- opengl
- res/layout
- location
- src/main/java/com/example/platform/location
- bglocationaccess
- currentLocation
- geofencing
- locationupdates
- permission
- useractivityrecog
- media
- ultrahdr
- src/main
- java/com/example/platform/media/ultrahdr/video
- res/layout
- video
- src/main/java/com/example/platform/media/video
- privacy
- data
- src/main/java/com/example/platform/privacy/data
- permissions
- src/main/java/com/example/platform/privacy/permissions
- transparency
- src/main/java/com/example/platform/privacy/transparency
- storage
- src/main/java/com/example/platform/storage
- mediastore
- photopicker
- user-interface
- appwidgets
- src/main
- java/com/example/platform/ui/appwidgets
- glance/layout
- constraintlayout
- src/main/java/com/example/platform/ui/constraintlayout
- draganddrop
- src/main
- java/com/example/platform/ui/draganddrop
- haptics
- src/main
- java/com/example/platform/ui/haptics
- bounce
- expand
- resist
- wobble
- res/drawable
- picture-in-picture
- src
- androidTest/java/com/example/android/pip
- main
- java/com/example/android/pip
- res/layout
- predictiveback
- src/main/java/com/example/platform/ui/predictiveback
- quicksettings
- src/main
- java/com/example/platform/ui/quicksettings
- text
- src/main
- java/com/example/platform/ui/text
- res/layout
- window-insets
- src/main
- java/com/example/platform/ui/insets
- res/layout
- windowmanager
- src/main
- java/com/example/platform/ui/windowmanager/demos
- res/layout
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
178 files changed
+3112
-2178
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
27 | | - | |
28 | | - | |
29 | 26 | | |
30 | 27 | | |
31 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 20 | + | |
| 21 | + | |
29 | 22 | | |
30 | 23 | | |
31 | 24 | | |
32 | | - | |
| 25 | + | |
33 | 26 | | |
34 | 27 | | |
35 | 28 | | |
36 | | - | |
| 29 | + | |
37 | 30 | | |
38 | 31 | | |
39 | 32 | | |
40 | 33 | | |
41 | 34 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 35 | + | |
46 | 36 | | |
47 | 37 | | |
48 | 38 | | |
49 | 39 | | |
50 | 40 | | |
51 | 41 | | |
52 | 42 | | |
53 | | - | |
| 43 | + | |
54 | 44 | | |
55 | 45 | | |
56 | 46 | | |
57 | | - | |
58 | 47 | | |
59 | | - | |
60 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
61 | 53 | | |
62 | | - | |
63 | 54 | | |
64 | 55 | | |
65 | 56 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | 57 | | |
75 | 58 | | |
76 | 59 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | 60 | | |
84 | | - | |
85 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
86 | 70 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
| 71 | + | |
| 72 | + | |
92 | 73 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
107 | 102 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
Lines changed: 0 additions & 31 deletions
This file was deleted.
Lines changed: 0 additions & 90 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
22 | 21 | | |
23 | | - | |
24 | 22 | | |
25 | | - | |
26 | | - | |
| 23 | + | |
| 24 | + | |
27 | 25 | | |
28 | | - | |
| 26 | + | |
29 | 27 | | |
30 | | - | |
| 28 | + | |
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
| |||
36 | 34 | | |
37 | 35 | | |
38 | 36 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
0 commit comments