如何建立在Android的梯形形状? [英] how to build a trapezoid shape in android?

查看:4728
本文介绍了如何建立在Android的梯形形状?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

这篇关于如何建立在Android的梯形形状?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆