title: onClick inside class that implements View.OnclickListener Never being Called
body: <p>I have read answers that are similar to this one. But that not solved the problem. Here is problem scenario.
  MainActivity contains this Fragment</p>
  
  <pre><code>public class HomeFragment extends Fragment implements View.OnClickListener{  
  
    @Override  
    public void onClick(View view){
        Log.v("TAG",""+view.getId());  //No log message shown
        switch(view.getId()){ 
           .....   
        }  
     }   
  }
  </code></pre>
  
  <p><strong>Fragment XML</strong></p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:app="http://schemas.android.com/apk/res-auto"
     android:id="@+id/coordinatorLayout"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent"
     android:orientation="vertical"&gt;
  
     &lt;RelativeLayout
         android:layout_width="fill_parent"
         android:layout_height="fill_parent"
         android:background="@drawable/app_background"&gt;
               &lt;ImageView
                     android:id="@+id/imageview"
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
                     android:src="@drawable/ic_man" /&gt;
              &lt;TextView
                     android:id="@+id/textview"
                     android:layout_width="fill_parent"
                     android:layout_height="wrap_content"
                     android:layout_marginLeft="5.0dip"
                     android:layout_toRightOf="@id/imageview"
                     android:text="@string/personname"
                     android:textColor="@color/textcolor"
                     android:textSize="25.0sp" /&gt;
      &lt;/RelativeLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>According to my understanding for Onclicklistener implementation any click on anywhere within view should out log message(here).No nested view on scrollview used.</p>