Dhruv Nirmal Dhruv Nirmal - 3 months ago 8
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

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.

Comments