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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -