我注意到没有 bottomEndRadius
在形状中,而只是 bottomRightRadius
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/colorPrimary" />
<corners android:bottomRightRadius="5dp" />
</shape>
是否有任何解决方法来支持从右到左的布局?
最佳答案
我发现的唯一方法是为 RTL 资源使用单独的目录。例如,drawable-ldrtl/用于图形或 layout-ldrtl/用于布局。
查看此文档了解更多详细信息:https://developer.android.com/training/basics/supporting-devices/languages#MirroringAddResources
关于Android RTL 支持形状角半径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56918398/