flex 4.5 圆形侧按钮
我是 Flex 的新手,我发现了改变按钮皮肤的 Spark 方法。我还没有解决按钮角的问题。我只是希望按钮的左侧和右侧像半椭圆形一样圆润。我还希望当我更改按钮的大小时,按钮的样式保持原样(按钮的左侧和右侧在任何尺寸下都像圆形一样圆滑)。你能帮助我吗?
I am new at flex and i have discovered spark method of button skin changing. I have not solve the problem of button corners. I just want that left and right side of buttons to be rounded like a half ellipse. Also I want that when I change the size of button the style of the button stayed as it is (left and right side of buttons are rounded like a circle at any size). Can you help me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
实际上您不需要为此覆盖皮肤。您可以像这样使用“cornerRadius”属性:
You actually don't need to override the skin for that. You can just use the "cornerRadius" property like so:
我尝试为我的应用程序制作一个。看起来标签不太对齐。
I have tried to make one for my app. Looks like the label is not quite aligned.
使用它作为按钮皮肤的父元素。它将显示为平坦的灰色无边框矩形。您在其中添加的任何内容都将显示为圆角按钮的一部分。调整圆角半径以适合按钮的大小/高度。
Use this as the parent element of your button skin. It will appear as a flat gray borderless rectangle. Anything you add inside of it will appear as part of the button with rounded corners. Adjust the cornerRadius to suit the size/height of the button.