Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持弧度边框 #10

Open
Hutao6688 opened this issue Apr 4, 2021 · 3 comments
Open

支持弧度边框 #10

Hutao6688 opened this issue Apr 4, 2021 · 3 comments

Comments

@Hutao6688
Copy link

圆角都有了,可不可以做一下带弧度的边框?

@ansen666
Copy link
Owner

ansen666 commented Apr 7, 2021

app:corners_radius="5dp" 弧度

app:stroke_color="#00ff00" 边框颜色
app:stroke_width="2dp" 边框宽度

设置这三个属性不就好了,这样就有边框有弧度了呀?

@Hutao6688
Copy link
Author

我说的是view四个边的弧度,不是四个角的弧度呀😂,app:corners_radius这个属性不是圆角吗?我说的是圆(弧度)边。

@ansen666
Copy link
Owner

ansen666 commented Jun 26, 2021

本来就支持单独设置弧度啊?不只是圆角

app:top_left_radius="15dp" 左上弧度
app:top_right_radius="15dp" 右上弧度
app:bottom_left_radius="15dp" 左下弧度
app:bottom_right_radius="15dp" 右下弧度

值改了弧度就变化

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants