What's the difference between @android: and ?android: -


what's difference between

android:color="@android:color/black" 

and

style="?android:attr/borderlessbuttonstyle"  

what's difference between @ , ? ?

this 1 of questions ungoogleable, or ogooglebar.

(from this answer , comments)

prefixing id question mark indicates want access style attribute that's defined in style theme, rather hard-coding attribute, explained in referencing style attributes.

more specifically, ? implies level of indirection. think of dereferencing theme attribute fetch resource points rather referring attribute itself. see ?android:attr/foo


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -