我有一个自定义的类似卡片形状如下。
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="?attr/colorListItemBackground" />
<corners
android:bottomLeftRadius="16dp"
android:topLeftRadius="16dp" />
</shape>
我的应用程序还支持从右到左的语言,因此切换到从右到左后,这个形状不会改变(自动镜像)。
我可以做哪些更改来使它成为自动镜像?
请注意圆形附近的圆角。 LTR_Image
圆角仍然在同一位置。 RTL_Image