I want to specify a relationship between two views in my Android XML layout file. Here is what I want to do:
<View
android:id="@+id/pathview"
android:layout_width="match_parent"
android:layout_height="match_parent" />
...
<CheckBox
android:id="@+id/viewPath"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:checked="true"
android:paddingRight="7dp"
android:shadowColor="#000000"
android:shadowDx="0.5"
android:shadowDy="0.5"
android:shadowRadius="0.5"
android:tag="@id/pathview"
android:text="Paths" />
However, the XML parser is treating the tag as a String and not interpreting it as an integer (System.out.println((String) [viewPath].getTag());
prints "false"). Is there any way I can assign the resource id to the View's tag?