【发布时间】:2019-11-14 21:11:12
【问题描述】:
有没有办法在LinearLayout 内创建View 的圆角而不是使用shape?
<View
android:layout_width="48dp"
android:clickable="true"
android:layout_height="48dp"
android:background="#f55151" />
【问题讨论】:
-
你试过用
CardView?? -
@NileshRathod 否
-
您可以使用
CardView或尝试使用app:cardCornerRadius="20dp" -
检查this
标签: android view rounded-corners cornerradius