I want to bind some extra data with a view. I am using tag in my xml file to add the extra information.
If the data is only String (android:tag=\"extra Info\"<
android:tag=\"extra Info\"<
Actually you can do that if you define tag elements as a child for views. Define multiple Tag attribute for View in xml layouts
<View ...> <tag android:id="@+id/mytag" android:value="@string/mytag_value" /> </View>
You can't do this from XML, XML supports only strings for view tags.