如何设置窗口圆角及边框

2025-05-09 14:17:23
推荐回答(1个)
回答1:

设置布局背景为圆角的,还有一种方法是直接设置一张圆角图片。

制作圆角:

android:topRightRadius="10dp"
android:bottomRightRadius="10dp"
android:bottomLeftRadius="10dp"/>

解释:solid的表示填充颜色,为了简单,这里用的是黑色。而corners则是表示圆角