设计自定义视图 [英] design a custom view
本文介绍了设计自定义视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有人知道如何创建自定义组件,例如 http://www.css-resources.com /balloon-right.gif [ ^ ]这个图像而不是使用图像本身。
我知道如何创建一个矩形(使用XML而不是Java的圆形),这在Google中很容易找到,但我不能使用像指针部分这样的东西。
我需要在活动中工作而不是使用XML文件。
有没有人有这样做的想法如果我被建议,我会很高兴。
Does any one have any idea of creating a custom component like http://www.css-resources.com/balloon-right.gif[^] this image instead of using the image itself.
I know how to create a rectangle (a rounded one using the XML and not in Java) which was found in Google easily, but I am not able to work with something like the pointer part.
I need to work in the activity rather than using an XML file.
Does anyone have an idea to do this I would be happy if I am suggested.
推荐答案
检查此链接并享受安卓......
http://www.edumobile.org/android/android-apps / quick-action-demo / [ ^ ]
check this link and enjoy android...
http://www.edumobile.org/android/android-apps/quick-action-demo/[^]
这篇关于设计自定义视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文