【发布时间】:2018-12-13 13:46:24
【问题描述】:
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/white" />
<corners
android:bottomLeftRadius="30dp"
android:topLeftRadius="30dp" />
</shape>
<Button
android:id="@+id/btn_list"
android:layout_width="@dimen/width_100dp"
android:layout_height="wrap_content"
android:background="@drawable/my_background"/>
尝试了上面的代码,但它对我不起作用。我需要做一个自定义类扩展按钮类吗?
【问题讨论】:
-
看看this
标签: android