在我的 android xml 布局中,我使用borderframe.xml 作为背景来应用边框。
borderframe.xml 文件如下所示:
<?xml version="1.0" encoding="UTF-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android">
<stroke
android:width="1dip"
android:color="#ffffff"/>
<solid
android:color="#95865F"/>
<corners
android:radius="10px"/>
<padding
android:left="1dp"
android:right="1dp"
android:top="1dp"
android:bottom="1dp"/>
</shape>
现在,虽然有一个 android:radius="10px" 那么它是有效的,但是虽然我要给特定的角落赋予圆形,但它不起作用。log cat 中没有任何错误消息,但我在 eclipse 中发现错误,例如:
The graphics preview in the layout editor may not be accurate:
* Different corner sizes are not supported in Path.addRoundRect.
即使该 xml 文件中没有填充,我也看不到任何边框。
现在,我该怎么做呢?如果我只想为 topLeftcorner 和 bottomLeftCorner 创建圆形边框,它的解决方案是什么。? 谢谢。