通常情况下,Android实现自定义控件无非三种方式: https://www.cnblogs.com/0616--ataozhijia/p/4003380.html 继承现有控件,对其控件的功能进行拓展。 将现有控件进行组合,实现功能更加强大控件。 重写View实现全新的控件 https://blog.csdn.net/qq_25034451/article/details/51463507 https://blog.csdn.net/mirkowu/article/month/2016/11