我怎样才能创建Android的自定义控件?自定义、控件、Android

2023-09-06 14:37:41 作者:时间已摆平所有犯的错

我想创建我的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.

 
精彩推荐
图片推荐