在我的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>
Run Code Online (Sandbox Code Playgroud)
现在,虽然有一个android:radius ="10px"然后它是有效的,但我将圆形形状到特定的角落只有它不起作用.日志猫中没有任何错误消息,但我在eclipse中发现错误,如:
The graphics preview in the layout editor may not be accurate:
* Different corner sizes are not supported in Path.addRoundRect.
Run Code Online (Sandbox Code Playgroud)
即使该xml文件中没有填充,我也无法看到任何边框.
现在,我该怎么做呢?如果我想为topLeftcorner和bottomLeftCorner创建圆形边框,那么它是什么的解决方案.?谢谢.