title: onclicklistener on a viewgroup with its child views
body: <p>I have a relative layout that I want to make tappable, including its child views.</p>
  
  <pre><code>&lt;RelativeLayout
      android:id="@+id/houses_rel_1"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_marginBottom="10dp"
      android:background="@drawable/white_grey_border_bottom"&gt;
  
      &lt;HorizontalScrollView
          android:id="@+id/houses_1"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:duplicateParentState="true"
          android:scrollbars="none"&gt;
  
          &lt;LinearLayout
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:orientation="horizontal"&gt;
  
              ...
          &lt;/LinearLayout&gt;
      &lt;/HorizontalScrollView&gt;
  
      &lt;TextView... /&gt;
      .....
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/fl4qX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fl4qX.png" alt="layout"></a></p>
  
  <p>I want to set an onclicklistener on the relative layout, the horizontal view, and the textviews, and a separate onclicklistener on the icon.</p>
  
  <pre><code>@BindView(R.id.houses_rel_1)
  ViewGroup mHouse;
  
  @BindView(R.id.fav_icn_1)
  ImageView mFavIcn;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_house_list);
      ButterKnife.bind(this);
  
      mHouse.setOnClickListener(new ViewGroup.OnClickListener() {
          @Override
          public void onClick(View view) {
              Intent intent = new Intent(mContext, SomeActivity.class);
              mContext.startActivity(intent);
          }
      });
      mFavIcn.setOnClickListener(new View.OnClickListener() {
          ...
      });
  }
  </code></pre>
  
  <p>Currently, the new activity is staring only when I tap on the <code>textview</code>s, but nothing happens when I tap on the <code>horizontalscrollview</code>. Do I have to duplicate the onclicklistener to <code>horizontalscrollview</code>? </p>