I can use equivalence of setTag(key)
at my Android layout files as this:
<EditText android:id="@+id/passwordEdit"
android:tag="key"
android:inputType="textPassword"/>
I would like to use equivalence of setTag(key, value)
at my xml.
Is it possible?
I'm a bit late to the party... but anyways you can do this from xml if you are using api level 21 or above. I am not sure whether the memory leak issue is still present or not.
<Button
android:layout_width=match_parent
android:layout_height=wrap_content
android:text="New button" >
<tag android:id="SomeId" android:value="SomeValue" />
</Button>
There is this:
<tag android:id="..." android:value="..."/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With