【发布时间】:2015-06-01 18:57:54
【问题描述】:
对不起我的英语。我无法理解半径的工作。我需要创建一个透明的图形来存储文本。
下面我已经创建了一个图,但是左上角的圆角不起作用
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:top="-1dp" android:right="-1dp" android:left="-1dp" android:bottom="-1dp">
<shape>
<stroke
android:width="1dp"
android:color="#ababb2" />
</shape>
</item>
</layer-list>
如果我使用角落
<corners android:radius="1dp"
android:bottomRightRadius="2dp" android:bottomLeftRadius="0dp"
android:topLeftRadius="2dp" android:topRightRadius="0dp"/>
一个数字环绕每个人,而不仅仅是我需要的角度
【问题讨论】:
-
如此小的半径根本不会引起注意。尝试 8dp 或 16dp。反正角度是90°。
-
你只需要
android:topLeftRadius="2dp",除掉其他人