Fixed
Status Update
Comments
an...@google.com <an...@google.com>
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-master-dev
commit 39609aa2309f0abb364f32b73d15f780432902e9
Author: Andrey Kulikov <andreykulikov@google.com>
Date: Thu Jul 02 19:24:50 2020
Allow corner sizes larger than 50%
Current limitation is too restrictive as it is ok to support the case when top corner is 100% and the bottom one is 0.
Relnote: Corner sizes used by RoundedCornerShape and CutCornerShape can now be larger than 50%
Fixes: 160400213
Test: manually, new test
Change-Id: Id2340cc5b2c3e2c8a95c9318b1110b840864dd97
M ui/ui-foundation/api/0.1.0-dev15.txt
M ui/ui-foundation/api/current.txt
M ui/ui-foundation/api/public_plus_experimental_0.1.0-dev15.txt
M ui/ui-foundation/api/public_plus_experimental_current.txt
M ui/ui-foundation/api/restricted_0.1.0-dev15.txt
M ui/ui-foundation/api/restricted_current.txt
M ui/ui-foundation/src/androidTest/java/androidx/ui/foundation/shape/corner/CornerBasedShapeTest.kt
M ui/ui-foundation/src/main/java/androidx/ui/foundation/shape/corner/CornerBasedShape.kt
M ui/ui-foundation/src/main/java/androidx/ui/foundation/shape/corner/CornerSize.kt
M ui/ui-foundation/src/main/java/androidx/ui/foundation/shape/corner/CutCornerShape.kt
M ui/ui-foundation/src/main/java/androidx/ui/foundation/shape/corner/RoundedCornerShape.kt
https://android-review.googlesource.com/1354565
Branch: androidx-master-dev
commit 39609aa2309f0abb364f32b73d15f780432902e9
Author: Andrey Kulikov <andreykulikov@google.com>
Date: Thu Jul 02 19:24:50 2020
Allow corner sizes larger than 50%
Current limitation is too restrictive as it is ok to support the case when top corner is 100% and the bottom one is 0.
Relnote: Corner sizes used by RoundedCornerShape and CutCornerShape can now be larger than 50%
Fixes: 160400213
Test: manually, new test
Change-Id: Id2340cc5b2c3e2c8a95c9318b1110b840864dd97
M ui/ui-foundation/api/0.1.0-dev15.txt
M ui/ui-foundation/api/current.txt
M ui/ui-foundation/api/public_plus_experimental_0.1.0-dev15.txt
M ui/ui-foundation/api/public_plus_experimental_current.txt
M ui/ui-foundation/api/restricted_0.1.0-dev15.txt
M ui/ui-foundation/api/restricted_current.txt
M ui/ui-foundation/src/androidTest/java/androidx/ui/foundation/shape/corner/CornerBasedShapeTest.kt
M ui/ui-foundation/src/main/java/androidx/ui/foundation/shape/corner/CornerBasedShape.kt
M ui/ui-foundation/src/main/java/androidx/ui/foundation/shape/corner/CornerSize.kt
M ui/ui-foundation/src/main/java/androidx/ui/foundation/shape/corner/CutCornerShape.kt
M ui/ui-foundation/src/main/java/androidx/ui/foundation/shape/corner/RoundedCornerShape.kt
Description
I'd like to implement the tab indicator shape in the screenshot. I tried using
RoundedCornerShape(100, 100)
, but that coerces the values to 50%.For now I've written my own using
GenericShape
, but it would be nice ifRoundedCornerShape
was more flexible.