onClick() Methot can not find Exception : I get this error.

                                                                              

> java.lang.IllegalStateException: Could not find method Clicked(View) in a parent or ancestor Context for android:onClick attribute defined on view class android.support.v7.widget.AppCompatButton with id 'button2'

I'm using in my app a different java class.



My Java Class



    https://pasteb  in.com/gwdf1Zrf

My XML

    https://pasteb  in.com/b0SQUPvW

I can get onClick() method on MainActivity but I want to get on " another.java "


  

