how to build a trapezoid shape in android?

前端 未结 3 497
长情又很酷
长情又很酷 2021-01-04 08:23

how can I create a trapezoid shape like below image ?

\"enter

I don\'t want to

3条回答
  •  悲哀的现实
    2021-01-04 08:48

    You can try by making a LayerDrawable in either code or xml. Make a rectangle shape and a triangle shape Check out the developer site for more information: http://developer.android.com/reference/android/graphics/drawable/LayerDrawable.html

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题