8

How to tell my code which tags to check?

view full story
linux-howto

http://stackoverflow.com – I have this code to set some tags, I'm setting two tags, after adding this lines to strings.xml: <item type="id" name="KOLONA1"/> <item type="id" name="KOLONA2"/> a1.setTag(R.id.KOLONA1, labelsA.get(0).tag); and in my onClickListener i have some code which checks tags: if (buttonClicked.getTag().equals(button.getTag())) { //some code } In this specific check, my code should check second, labelsA.get(0).tag tag, but it does not, it check first one, R.id.KOLONA. How to tell my code which tags to check? ![enter image description here][1] [1]: (HowTos)