Creating a rectangle shape with only two rounded edges

前端 未结 7 704
难免孤独
难免孤独 2021-02-01 03:26

I can create a shape that is a rectangle with all edges rounded. However, what I\'m wanting is a rectangle shape with only 2 of the edges rounded. Is this possible?

I\

7条回答
  •  长发绾君心
    2021-02-01 03:49

    I think the best (to my understanding of your question) is to create a 9patch image and use it as background - can be defined to stretch as you need and set at the XML level saving some code work

提交回复
热议问题