Hi Everyone,
I want to disable the button press on a 2nd click, so I have this code for the action handler of the button in my android code :
// do something when the button is clicked
public void onClick(View v) {
final Button button = (Button)findViewById(R.id.radio_red);
if(button.isPressed()==true && rt1==true )
{
button.setPressed(false);
button.clearFocus();
//rt1=false;
//do some processing !
}
else rt1=true;
}'
However, button.setPressed(false); doesnt work as expected. :(
Can anyone please help me out ?