title: Textview causing java.lang.ClassCastException: android.widget.TextView
body: <p>I have three textviews and applied clickevent on them, but when i click on any of them the they cause Forceclose error in application. i have also tried changing ids textviews and then clean project and ran the project still that error is not removed.</p>
  
  <p>My XML code is </p>
  
  <p>for one textview</p>
  
  <pre><code>&lt;LinearLayout
          android:id="@+id/LL_fb" 
          android:layout_width="180px"
          android:layout_height="27px"
          android:layout_above="@+id/txt_msg_regs"
          android:layout_alignLeft="@+id/LL_signup"
          android:layout_marginBottom="25dp"
          android:background="@drawable/facebook" &gt;        
      &lt;TextView
          android:id="@+id/btn_txt_fb"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="Connect with facebook"
          android:layout_gravity="center_vertical"
          android:layout_marginLeft="23dp"
          android:layout_marginTop="1dp"
          android:clickable="true"
          android:textColor="#FFFFFF" /&gt;
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>for second textview</p>
  
  <pre><code>&lt;LinearLayout 
          android:id="@+id/LL_signup"
          android:layout_width="180px"
          android:layout_height="29px"
          android:layout_above="@+id/textView1"
          android:layout_alignLeft="@+id/LL_login"
          android:background="@drawable/lmyic_signup"&gt;
  
      &lt;TextView
          android:id="@+id/btn_txt_sinup"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="signup with email"
          android:layout_gravity="center_vertical"
          android:layout_marginLeft="25dp"
          android:layout_marginTop="1dp"
          android:clickable="true"
          android:textColor="#FFFFFF" /&gt;
  
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>for third one</p>
  
  <pre><code> &lt;LinearLayout 
              android:id="@+id/LL_login"
              android:layout_width="180px"
                  android:layout_height="29px"
                  android:layout_alignParentBottom="true"
                  android:layout_centerHorizontal="true"
                  android:layout_marginBottom="69dp"
                  android:background="@drawable/lmyic_login"&gt;
          &lt;TextView
              android:id="@+id/btn_txt_login"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="Log in"
              android:layout_gravity="center_vertical"
              android:layout_marginLeft="70dp"
              android:layout_marginTop="1dp"
              android:textColor="#FFFFFF" 
              android:clickable="true"/&gt; 
          &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>this is my android code. This class name in intent are also correct and i verified them.</p>
  
  <pre><code>TextView img_login;
  img_login = (TextView)findViewById(R.id.btn_txt_login);
   img_login.setOnClickListener(new OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  // TODO Auto-generated method stub
  
                  if(v.getId() == img_login.getId())
                  {
                  Intent i_lin = new Intent(LockmeifyoucanActivity.this,lmiyc_login.class);
                  startActivity(i_lin);
                  }                   
              }
          });
  </code></pre>
  
  <p>Please Tell me what is wrong with this. If logcat is needed then ask me for it....</p>