Difference between ?selectableItemBackground, ?android:selectableItemBackground and ?android:attr/selectableItemBackground in Android?

后端 未结 2 567
后悔当初
后悔当初 2021-02-01 05:58

What is the difference between:

android:background=\"?selectableItemBackground\"

android:background=\"?attr/selectableItemBackground\"

android:background=\"?an         


        
2条回答
  •  Happy的楠姐
    2021-02-01 06:41

    They all do the same work. The only difference is that android prefix is for android 3.0 and above and if you want to use the same attribute for android 2.3 and below you have to remove the android prefix. Thanks

提交回复
热议问题