Android : Androi onClick method blocked ?

on Thursday, August 14, 2014


piece of code:



textView.setOnClickListener(new OnClickListener() {

@Override
public void onClick(View v) {
//show a dialog
}
}


View Hierarchy: Activity / Fragment / Gridview / textView in Item


operation: when i clicked the textView,app doing nothing, then ,i clicked other position of onScreen, the Onclick() method was calling and show the dialog,i don't understand . why?


this bug is occasional.


i am sorry, my english is very poor.


thanks in advance.


0 comments:

Post a Comment