我怎样才能创建Android的自定义控件? [英] How can I create custom controls in Android?

查看:132
本文介绍了我怎样才能创建Android的自定义控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建我的Andr​​oid应用程序的自定义控制。这将是一个圆形的控制与一些较小的可移动的圆圈,将指示一个特定的值。

I would like to create a custom control in my Android App. It will be a circular control with some smaller moveable circles that will indicate a specific value.

有没有办法来实现这一点?

Is there a way to realize this?

有没有至少有一些不错的教程,在那里我可以阅读如何创建一个自定义的控制?

Are there at least some nice tutorials where I can read how to create a custom control?

推荐答案

有一个看的Andr​​oid开发指南的自定义组件部分。通常的做法是延长 查看 并覆盖适用的方法。

Have a look at the custom components section of the Android Dev Guide. The usual approach is to extend a View and override applicable methods.

这篇关于我怎样才能创建Android的自定义控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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