I'm trying to make condition where I wanto compare text value of button but it always doesn't match...
<Button android:layout_width="90dp" android:layout_height="40dp" android:gravity="center" android:text="+" android:id="@+id/baton1" android:layout_gravity="left|center_vertical" />
I've tried to print out the value and it shows like "[+]"...
if (btn.toString().equals("[+]")) {
Aucun commentaire:
Enregistrer un commentaire