Dhruv Nirmal Dhruv Nirmal - 1 year ago 52
Android Question

why we put @ before using resources in android xml file?

Why put

@
in xml file of android to access some resources?

<android:background="@drawable/coloreffect">

Answer Source

It is used to differentiate normal strings and string referred to resources.
For example when you write android:background="resource name without @"

then it act as static value it does not bind from your resources.