如何建立在Android的梯形形状?梯形、形状、Android

2023-09-05 03:54:00 作者:是谁浮夸了你的青春年华?

我怎么可以创建一个梯形,像下面的图片?

how can I create a trapezoid shape like below image ?

我不想使用图像或9.png

I don't want to use an image or 9.png .

推荐答案

您可以在任一code或XML制作 LayerDrawable 尝试。做一个矩形和一个三角形 退房的开发者网站了解更多信息:的http://developer.android.com/reference/android/graphics/drawable/LayerDrawable.html

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