title: ImageButton OnClickListener not working
body: <p>So I have the following ImageButton in a fragment:</p>
  
  <pre><code>&lt;ImageButton
              android:id="@+id/moneyBtn"
              style="@android:style/Widget.Holo.Light.ImageButton"
              android:layout_width="250dp"
              android:layout_height="250dp"
              android:layout_centerHorizontal="true"
              android:layout_marginTop="40dp"
              android:scaleType="fitCenter"
              android:adjustViewBounds="true"
              android:src="@drawable/monkey"
              android:background="@null"/&gt;
  </code></pre>
  
  <p>And the following fragmentActivity.kt</p>
  
  <pre><code>class Home : Fragment()  {
  
      override public fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
          val view: View? = inflater.inflate(R.layout.fragment_home, container, false)
          val moneyButton: ImageButton = view?.findViewById(R.id.moneyBtn) as ImageButton
  
  
          val result = MyAppApplication()
          var money = result.money
  
          moneyButton.setOnClickListener(View.OnClickListener {
              Toast.makeText(activity, "TESTING BUTTON CLICK 1", Toast.LENGTH_SHORT).show()
          })
  
  
          return view
      }
  </code></pre>
  
  <p>I also tried to use the "normal" Kotline setOnClickListener</p>
  
  <pre><code>moneyButton.setOnClickListener {
              Toast.makeText(activity, "TESTING BUTTON CLICK 1", Toast.LENGTH_SHORT).show()
          }
  </code></pre>
  
  <p>The App dosent crash and dosent freeze, it just dont work</p>
  
  <p>I also tried to replace the Toast with a throw, but that wont be exceuted either.
  Maybe you can find my mistake?</p>