title: How to set OnClickListener for ScrollView?
body: <p>i'm developing an android project which it has a viewpager. i wrote an adapter for my viewpager and my adapter consist of s scrollview and some views inside that.</p>
  
  <p>i want when user click on the scrollview, something happen (i wrote this part too and test it and it works).</p>
  
  <p>i implement onClickListener for my scrollview but it's not triggered when user click on that.</p>
  
  <p>i have already read <a href="https://stackoverflow.com/questions/16776687/onclicklistener-on-scrollview">this</a> but it's not work for me.</p>
  
  <p>my code for onClickListener is here</p>
  
  <pre><code>rootView = inflater.inflate(R.layout.level_selector_list_view_adapter, container, false);
  ScrollView scroll = (ScrollView) rootView.findViewById(R.id.level_selector_view_scroll_view);
  
  scroll.setOnClickListener(new OnClickListener()
  {
          @Override
          public void onClick(View arg0)
          {
              Log.e(MainActivity.WATERMELON_TAG, "Click!!!");
          }
  });
  </code></pre>
  
  <p>and my layout code is this:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="@dimen/level_selector_values_main_page_view_pager_width"
  android:layout_height="wrap_content"
  android:orientation="vertical" &gt;
  
  &lt;ScrollView
      android:id="@+id/level_selector_view_scroll_view"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:clickable="true"
      tools:ignore="UselessParent" &gt;
  
      &lt;FrameLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:clickable="false"
          tools:ignore="UselessParent" &gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:layout_gravity="center"
              android:clickable="false"
              android:orientation="vertical" &gt;
  
              &lt;ImageView
                  android:id="@+id/level_selector_view_pager_adapter_level_logo"
                  android:layout_width="@dimen/level_selector_values_view_pager_adapter_level_logo_width"
                  android:layout_height="@dimen/level_selector_values_view_pager_adapter_level_logo_height"
                  android:layout_gravity="center_horizontal"
                  android:layout_marginTop="@dimen/level_selector_values_view_pager_adapter_level_logo_top_margin"
                  android:clickable="false"
                  android:scaleType="fitXY"
                  tools:ignore="ContentDescription" /&gt;
  
              &lt;TextView
                  android:id="@+id/level_selector_view_pager_adapter_level_name"
                  android:layout_width="@dimen/level_selector_values_view_pager_adapter_level_name_width"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center_horizontal"
                  android:layout_marginTop="@dimen/level_selector_values_view_pager_adapter_level_name_top_margin"
                  android:clickable="false"
                  android:gravity="center"
                  android:textColor="@color/level_selector_values_level_name_font_color"
                  android:textSize="@dimen/level_selector_values_level_name_font_size" /&gt;
  
              &lt;TextView
                  android:id="@+id/level_selector_view_pager_adapter_level_score"
                  android:layout_width="@dimen/level_selector_values_view_pager_adapter_level_score_width"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center_horizontal"
                  android:layout_marginTop="@dimen/level_selector_values_view_pager_adapter_level_score_top_margin"
                  android:clickable="false"
                  android:gravity="center"
                  android:textColor="@color/level_selector_values_level_name_font_color"
                  android:textSize="@dimen/level_selector_values_font_size" /&gt;
          &lt;/LinearLayout&gt;
  
          &lt;ImageView
              android:id="@+id/level_selector_view_pager_adapter_lock"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:layout_gravity="center"
              android:alpha="0.75"
              android:clickable="false"
              android:scaleType="fitXY"
              android:src="@drawable/lock"
              tools:ignore="ContentDescription" /&gt;
      &lt;/FrameLayout&gt;
  &lt;/ScrollView&gt;
  </code></pre>
  
  <p></p>