Dhruv Nirmal Dhruv Nirmal - 2 months ago 7
Android Question

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

Why put

in xml file of android to access some resources?



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.