Can someone please put a working code example of button.performClick()
assigned to a OnClickListener
. The following code which I have used returns false for button.performClick()
-
myButton.performClick()
myButton.setOnClickListener ( new View.OnClickListener()
{
@Override
public void onClick ( View view )
{
.............
}
});
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…