【发布时间】:2017-12-13 14:44:47
【问题描述】:
我写了下面的代码,但我的 ImageButton 仍然有尖角。也许我不知道什么,如果你知道,请告诉我。
我的观点
<ImageButton
android:id="@+id/bottle"
android:src="@drawable/bottle"
android:background="@drawable/rouncorners"
android:layout_width="100dp"
android:layout_height="100dp"/>
可绘制的 xml 文件:
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="10dp"/>
</shape>
【问题讨论】:
标签: android imagebutton