写java文件组成特殊的View,然后在xml文件中通过 包名.类名 调用。
Android 开发项目笔记2 自建View满足特殊要求
原文:http://www.cnblogs.com/sdrzlyz/p/3556214.html