title: why can't i call onClick attribute of a fragment's view
body: <p>if i try that, i got this runtime error </p>
  
  <pre><code>AndroidRuntime: FATAL EXCEPTION: main
  Process: com.chat.okitokichatchat, PID: 3365
  java.lang.IllegalStateException: Could not find method onShowDialog(View) in a parent or ancestor Context for android:onClick attribute defined on view class 
  </code></pre>
  
  <p>why can't i call it? with onClick? and why the system try to call it from a parent like Activity?
  and also i found the warning "cannot find declaration go to" in XML attribute
  can you tell me why?</p>