1, you need to add this kind of code to the constructors of your custom view which must extend ViewGroup, and the parameter attachToRoot must be true. LayoutInflater.from(context).inflate(R.layout.yourLayout, this, true); 2,If you want to add your cu
原文:https://www.jianshu.com/p/9b25087a5d7d Android Studio 3.0启动图 序言 总看别人的文章,今天尝试着自己来写一篇.在逛论坛时候,无意间发现Android Studio 3.0正式版本推送更新了,早听说AS 3.0添加了许多新功能,然后手贱迫不及待地想先睹为快,结果正中下怀.下载和更新Gradle,半天无响应,只好结束进程强制关闭AS,手动离线下载安装.本以为不会有太大问题,谁知太高估了,进来各种的报错,各种的配置问题,填坑之路就此开
原文:https://blog.csdn.net/qq_26361871/article/details/80255141 1.grade配置Error: Could not find com.android.tools.build:gradle:2.2.1. 解决方法与Maven仓库有点像:进入 D:\software\android\android-studio-ide-145.3276617-windows\android-studio\gradle\m2repository\com\an