9PatchRect is not stretching correctly
Asked Answered
Y

4

0

My idea is that it would stretch like this:

but it is stretching like this:

here is how it is sliced, I know it's wrong but I can't come up with a right way to do it

Yonit answered 19/11, 2023 at 15:57 Comment(0)
S
0

Maybe move the two vertical lines to just inside of the purple rectangle?

EDIT: Where the red lines are in this example.

Stereotropism answered 19/11, 2023 at 16:49 Comment(0)
Y
0

Stereotropism

I tried this, it reduced the length of the lines but it still didn't look the way I expected

Yonit answered 19/11, 2023 at 17:5 Comment(0)
S
0

I just mocked up your image and tried it and got the same results you did. I'm not sure if you can get the results you are looking for. You may have to settle. Sorry I couldn't be more help. Hopefully, someone will be along soon that knows more about NinePatchRects than I do.

Stereotropism answered 19/11, 2023 at 17:9 Comment(0)
D
0

If you get deformation on the corners please open an issue report.

Describe answered 19/11, 2023 at 18:20 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.