compare string stored in string resource in android?

Viewed 8377

I have a button on which (like) is written from string resource, on click I want to toggle like to unlike & vice verse.

How to compare button contain like or unlike from string resource?

My string.xml contains

<string name="like">Like</string>
<string name="unlike>unlike</string>
6 Answers
Related