Questions tagged [round-rect]

7 questions
7
votes
4 answers

SwiftUI Mask a rectangle inside a rounded rectangle

Hello there. I am wondering, in SwiftUI, how do you mask the contents of a rounded rectangle so that a child rectangle clips the corners. In my example I have a white rounded rectangle and a pink rectangle on a zstack, I've tried to apply…
zardon
  • 1,601
  • 4
  • 23
  • 46
2
votes
1 answer

SVG arc zone in a circle

I'd like to get something like that in SVG. So far I've made the circles but I want to positionate correctly the black zone around. An API returns four values: start_angle : The first angle (Looks to be a radian) end_angle : The final angle (Looks…
Manitoba
  • 8,522
  • 11
  • 60
  • 122
0
votes
1 answer

How to drawRoundRect() if Build.VERSION.SDK_INT < 21?

The method canvas.drawRoundRect()is only available on devices with Build.VERSION.SDK_INT >= 21. The method canvas.drawArc() also requires SDK_INT >= 21. Is it possible to drawRoundRect on older devices?
A.G.
  • 2,037
  • 4
  • 29
  • 40
0
votes
2 answers

How can I add text on my round rectangle and/or change the background on kivy?

main: from kivymd.app import MDApp class DeliveryToday(MDApp): def build(self): return DeliveryToday().run() kv MDScreen : canvas.before: Color: rgba: (.4,.4,.4,1) RoundedRectangle: size :…
khushi
  • 365
  • 1
  • 4
  • 17
0
votes
1 answer

VML RoundReact overlap on the text

appreciate your help and time. I have this issue when using VML RoundRect in email design. I refer the following code from Bulletproof email buttons. However when i set absolute position on the RoundRect, it overlay on the white text.