Status Update
Comments
gg...@google.com <gg...@google.com> #2
Thank you for reporting this issue. For us to further investigate this issue, please provide the following additional information:
What is the expected output?
Which Android build are you using? (e.g. TQ3A.230705.001.A1)
Please provide a sample project or apk to reproduce the issue. Also mention the steps to be followed for reproducing the issue with the given sample project or apk.
Screen Record of the Issue
Please capture screen record or video of the issue using following steps:
adb shell screenrecord /sdcard/video.mp4
Subsequently use following command to pull the recorded file:
adb pull /sdcard/video.mp4
Attach the file to this issue.
Android bug report (to be captured after reproducing the issue)
For steps to capture a bug report, please refer:
Alternate method
Navigate to “Developer options”, ensure “USB debugging” is enabled, then enable “Bug report shortcut”. Capture bug report by holding the power button and selecting the “Take bug report” option.
Note: Please upload the bug report and screenshot to google drive and share the folder to
pe...@gondwanasoftware.au <pe...@gondwanasoftware.au> #3
Files and directories required are in
This project indicates that the use of ColorConfiguration entries may not have been implemented for all three types of gradients (LinearGradient, RadialGradient and SweepGradient).
These files are from a Wear OS 4 AVD, but the code has also tested on physical Pixel Watch 2, with the same behaviour. Build number: TWD9.240805.001.A2
Expected output: expected.png
Actual output: actual.png
Sample project: see Gradient folder.
Sample APK: watchface-debug.apk
Steps to reproduce:
- Build and install project.
- Top row indicates correct gradients. Bottom row should be identical to top row but instead indicates that gradients have been ignored, presumably due to inclusion of CONFIGURATION entries.
Screen recording: not helpful since behaviour is static. Screenshots should suffice.
Android bug report: bugreport-Wear_OS_Small_Round_API_33-2024-11-02-06-27-36-3dbeefd4-776c-4376-8f19-875af315fa59
logcat: logcat.txt. Probably significantly, the six lines reporting "Unknown color" don't appear if the project is run without using CONFIGURATION entries in gradients.
vi...@google.com <vi...@google.com> #4
We have shared this with our product and engineering team and will update this issue with more information as it becomes available.
pe...@gondwanasoftware.au <pe...@gondwanasoftware.au> #5
Thanks.
Description
In
<UserConfigurations>
, I have:In a
<SweepGradient>
, I have:But the element is drawn white, as though every entry in
colors
were#ffffffff
. I can't see any runtime errors reported.When I 'hard-code' colour values into
colors
, I see them, so I think that the<SweepGradient>
is correct.When I apply
[CONFIGURATION.colour.1]
to an element that doesn't use a gradient, I see it, so I think that the<ColorConfiguration>
is correct.Perhaps it isn't supposed to be possible to apply colours from a
<ColorConfiguration>
to a gradient, or perhaps it just hasn't been implemented yet. However, the inability to do so limits the usefulness of<ColorConfiguration>
.