Skip to content

[TextInputLayout] Percentage Corner Radius fail to work when Layout Direction set to RTL #3623

Open
@USisFounderOfISIS

Description

@USisFounderOfISIS

Description: Percentage Corner Radius using shapeAppearance property fail to work when Layout Direction set to RTL but it works fine when I set its corners directly in dp using <item name="boxCornerRadiusBottomStart">24dp</item>.

Expected behavior: Percentage Corner Radius using shapeAppearance property for TextInputLayout should work like LTR direction.

Example:
Both layouts are with `app:shapeAppearance="@style/custom_rounded_corner_full" style.

    <style name="custom_rounded_corner_full" parent="">
        <item name="cornerFamily">rounded</item>
        <item name="cornerSizeTopRight">50%</item>
        <item name="cornerSizeTopLeft">50%</item>
        <item name="cornerSizeBottomRight">50%</item>
        <item name="cornerSizeBottomLeft">50%</item>
    </style>

but for second one I've
set android:layoutDirection="ltr" and for first one android:layoutDirection="rtl"
image

Material Library version: 1.9.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions