Kotlin in xml onClick not work
<p>I learning kotlin, and now for me not cearly some moment. I have xml</p>

<pre><code>&lt;ImageView
                    android:id="@+id/aries"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:padding="10dp"
                    android:tag="1"
                    android:onClick="clickItemHoro"
                    android:src="@drawable/aries" /&gt;
</code></pre>

<p>and fragment </p>

<pre><code>class ChooseYourHoroscope : Fragment(){

    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,
                              savedInstanceState: Bundle?): View? {
        val view = inflater.inflate(R.layout.fragment_welcome_old, container, false)

        return view;
    }

    fun clickItemHoro(v: View?){
        Log.e("clickItemHoro", v!!.tag.toString())
    }

}
</code></pre>

<p>when i click button i have error:</p>

<blockquote>
  <p>Could not find method clickItemHoro(View) in a parent or ancestor
  Context for android:onClick attribute defined on view class
  android.support.v7.widget.AppCompatImageView with id 'aries'</p>
</blockquote>

<p>why it happen? Code vary simple, but it not work, i cant understand why</p>