How to set integer tag to a widget in xml layout file?

后端 未结 4 526
天命终不由人
天命终不由人 2021-01-07 17:45

I have simple layout, but I can only set string tag. How to set integer tag?



        
4条回答
  •  抹茶落季
    2021-01-07 18:39

    Supply a tag for this view containing a String, to be retrieved later with View.getTag() or searched for with View.findViewWithTag().

    Must be a string value, using '\\;' to escape characters such as '\\n' or '\\uxxxx' for a unicode character.

    For more information go to android:tag

提交回复
热议问题