title: Android EventListener
body: <p>Please check this xml</p>
  
  <pre><code>&lt;FrameLayout android:id="@+id/LayoutTab"
              android:layout_width="fill_parent" android:layout_height="wrap_content"
              android:layout_gravity="bottom" android:layout_marginBottom="-30dip"&gt;
  
              &lt;ImageView android:id="@+id/ImageMenu" android:background="@drawable/img_tab"
                  android:layout_height="wrap_content" android:layout_width="fill_parent"&gt;&lt;/ImageView&gt;
  
              &lt;LinearLayout android:id="@+id/LinearLayout03"
                  android:layout_width="fill_parent" android:paddingLeft="5dip"
                  android:layout_height="wrap_content" android:layout_gravity="bottom"&gt;
                  &lt;ImageButton android:layout_width="wrap_content"
                      android:layout_height="wrap_content" android:id="@+id/btnNegative"
                      android:background="@drawable/btn_minus_state" android:layout_margin="5dip"&gt;&lt;/ImageButton&gt;
                  &lt;ImageButton android:layout_width="wrap_content"
                      android:layout_height="wrap_content" android:id="@+id/btnPositive"
                      android:background="@drawable/btn_plus_state" android:layout_margin="5dip"&gt;&lt;/ImageButton&gt;
                  &lt;ImageButton android:layout_width="wrap_content"
                      android:layout_height="wrap_content" android:id="@+id/btnShare"
                      android:background="@drawable/btn_share_state" android:layout_margin="5dip"&gt;&lt;/ImageButton&gt;
              &lt;/LinearLayout&gt;
  
          &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>here i am having an ImageView as a background and top of that there will be few image buttons. now i want to implement eventListener (OnClickListener) to the imageview &amp; imagebuttons. but when i click on buttons, that event also goes to imageview (which is in the background) . how to handle this situation ?</p>
  
  <p><strong>Edit: OP Posted Code in Comments</strong></p>
  
  <pre><code>mnuTab = (ImageView) this.findViewById(R.id.ImageMenu);
  btnmin = (ImageButton) this.findViewById(R.id.btnNegative);
  btnplus = (ImageButton) this.findViewById(R.id.btnPositive);
  btnShare = (ImageButton) this.findViewById(R.id.btnShare);
  mnuTab.setOnClickListener(new OnClickListener() {
      public void onClick(View v) {
          // my functions
      }
  });
  btnmin.setOnClickListener(new OnClickListener() {
      public void onClick(View v) { }
  });
  btnplus.setOnClickListener(new OnClickListener() {
      public void onClick(View v) {
          // my functions
      }
  });
  </code></pre>