I want, like in the sample picture, when I click on the wrong answer, the correct answer will be green and the wrong answer will be red...
I make it red with this command, but I can't make the correct answer green
I make it red with this command, but I can't make the correct answer green
B4X:
Private Sub ButAnswer_Click
Dim btn As Button = Sender
Dim gd As ColorDrawable
If AnsverNum = btn.Text Then
gd.Initialize(Colors.RGB(92,161,58) , 10dip)
btn.Background = gd
Sleep(300)
PlayGame
Coine
gd.Initialize(Colors.RGB(41,119,156), 10dip)
btn.Background = gd
Else
gd.Initialize(Colors.Red,10dip)
btn.Background = gd
Error
End If
End Sub