title: Linear layout not clickable after first layout
body: <h2>Linear Layout</h2>
  
  <p>I am trying to create a <code>LinearLayout</code> on the main screen to act as a menu.  I didn't want <code>Buttons</code> or have to create images, I like the look I get with the <code>TextViews</code> and <code>Layouts</code>.  My problem is I cannot get the <code>onClick()</code> to work past the first layout, its been driving me nuts the past couple days.  Is there something small I'm missing or am I doing it all wrong?</p>
  
  <h2>Main.Java</h2>
  
  <pre><code>import android.app.Activity;
  import android.content.Intent;
  import android.os.Bundle;
  import android.view.View;
  import android.view.View.OnClickListener;
  import android.widget.LinearLayout;
  
  
  
  public class Main extends Activity {
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  
              LinearLayout computer = (LinearLayout) findViewById(R.id.main_btn_computer);
              LinearLayout networking = (LinearLayout) findViewById(R.id.main_btn_networking);
  
              computer.setOnClickListener(new OnClickListener()
              {
                    public void onClick(View v) {
                //Call your method here
                            startActivity (new Intent(getApplicationContext(), ComputerMain.class));        
                        }
  
              });
  
            networking.setOnClickListener(new OnClickListener()
              {
                    public void onClick(View v) {
                //Call your method here 
                            startActivity (new Intent(getApplicationContext(), NetworkingMain.class));  
                        }
  
              });
            }
      }
      }
  </code></pre>
  
  <h2>Main.xml</h2>
  
  <pre><code>    &lt;LinearLayout
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_weight="1"
              android:orientation="vertical"
              android:padding="6dip" &gt;
  
  
  
  
  
          &lt;LinearLayout
              android:id="@+id/main_btn_computer"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_alignParentLeft="true"
              android:layout_alignParentTop="true"
              android:layout_marginTop="15dp"
              android:background="@drawable/border"
              android:clickable="true"
              android:focusable="true" 
              android:orientation="vertical"
              android:weightSum="5" &gt;
  
              &lt;TextView
                  android:id="@+id/textView1"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_weight="1"
                  android:text="Operating Systems"
                  android:textAppearance="?android:attr/textAppearanceLarge"
                  android:textColor="@color/light_blue" /&gt;
  
  
              &lt;TextView
                  android:id="@+id/textView2"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_weight="1"
                  android:text="Windows, Linux, Dos, and Mac"
                  android:textAppearance="?android:attr/textAppearanceSmall"
                  android:textColor="@color/grey_font" /&gt;
  
          &lt;/LinearLayout&gt;
  
  
  &lt;LinearLayout
      android:id="@+id/main_btn_networking"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_alignParentBottom="true"
      android:layout_alignParentLeft="true"
      android:background="@drawable/border"
      android:clickable="true"
      android:focusable="true" 
      android:orientation="vertical"
      android:weightSum="10" &gt;
  
      &lt;TextView
          android:id="@+id/textView3"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_weight="1"
          android:text="Networking"
          android:textAppearance="?android:attr/textAppearanceLarge"
          android:textColor="@color/light_blue" /&gt;
  
      &lt;TextView
          android:id="@+id/textView4"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_weight="1"
          android:text="Cisco, HP Procurve"
          android:textAppearance="?android:attr/textAppearanceSmall"
          android:textColor="@color/grey_font" /&gt;
  &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>