I have a Checkbox that will be the button Follow/Following of my app. How can I change the text of this button in the XML file without have to create a image for that? Is this possible?
Here is my code:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/follow_card" android:state_checked="false">
</item>
<item android:drawable="@drawable/following_card" android:state_checked="true"/>
<item android:drawable="@drawable/follow_card"/>
</selector>
Follow_card/Following_card are two diferent XML drawable files defining the shape of the button