關於com.gc.materialdesign.views.CheckBox 設置默認選中,不起做用

輸入圖片說明

修改成 xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:materialdesign="http://schemas.android.com/apk/res-auto" 這是自定義屬性引入有問題形成的。html

一、 xmlns:materialdesign="http://schemas.android.com/tools" tools命名空間能夠用來預覽一些佈局屬性的添加和刪除後的效果,可是程序運行並不起做用。 http://blog.csdn.net/zhengdan66/article/details/46960985android

二、 xmlns:materialdesign="http://schemas.android.com/apk/res-auto" 是自定義屬性 https://zhidao.baidu.com/question/394670552939034365.htmlapp

此外關於兩個聲明的不一樣的命名空間,android的是系統的,app是自定義的。佈局

相關文章
相關標籤/搜索