在4.x设备上,使用布局文件会?android:attr/selectableItemBackgroundBorderless
导致崩溃,但?attr/selectableItemBackgroundBorderless
不会崩溃。它们之间有什么区别?
?attr/selectableItemBackgroundBorderless
是appcompat支持库的实现,它可以向后升级到API 7,?android:attr/selectableItemBackgroundBorderless
而是内部实现,在较早的API级别中不存在。因此崩溃。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句