开发者

Android - Inflate a view and draw to canvas?

I have a problem that would be easily solved if I could somehow inflate a view (this part is doable) but instead of letting android's UI framework handle it, I would like to开发者_高级运维 be able to explicitly draw it to a Canvas object. Is that possible?

Thanks


To be able to draw directly on the canvas, you'll have to extend the View to create your custom component. See http://developer.android.com/guide/topics/ui/custom-components.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜