Fix sharp corners on placeholders #7142
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
All placeholder now have round corners matching the corner radius of the image that will eventually load.
I also added placeholder to the avatars on the contributor screen.
Screenshots (now/earlier):
Checklist
./gradlew checkstyle spotbugsPlayDebug spotbugsDebug :app:lintPlayDebug
Notes
I am quite interested in hearing some feedback about my code here. Like, I know that the GradientDrawable I used here seems somewhat questionable since we don't need a gradient. However, I couldn't get ColorDrawable to round the cornors and the ShapeDrawable and PaintDrawable were always transparent :/
Also another question, I initially used quite a few type inference assignments with
var x = new SomeClass()
. However, after double checking I discovered that the rest of the codebase isn't written in that style so I removed them again. So I wanted to ask again if there is a special reason why they aren't used and would you be against introducing them?