title: I'm getting error "LinearLayout cannot be resolved to a type" also the note stated "Mulitple marker at this line"
body: <p>I'm new to Android and I'm trying out the Pinch to Zoom code.  I get an error  "LinearLayout cannot be resolved to a type" at this line. mainView =(LinearLayout)findViewById(R.id.linearLayout);
  Here is the code below can you help me resolve this issue. Thank you for your help.</p>
  
  <pre><code>package com.zoomlayout;
  
  import android.os.Bundle;
  import android.app.Activity;
  import android.graphics.PointF;
  import android.view.Menu;
  import android.view.View;
  import android.view.View.OnClickListener;
  import android.widget.Button;
  
  public class ZoomLayout extends Activity {
   View mainView = null;
  
   @Override
   public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_zoom_layout);
    mainView =(LinearLayout)findViewById(R.id.linearLayout); //got the error here
  
    Button buttonZoomOut = (Button)findViewById(R.id.buttonZoomOut);
    Button buttonNormal = (Button)findViewById(R.id.buttonNormal);
    Button buttonZoomIn = (Button)findViewById(R.id.buttonZoomIn);
  
    buttonZoomOut.setOnClickListener(new OnClickListener() {
  
     @Override
     public void onClick(View v) {
      zoom(0.5f,0.5f,new PointF(0,0));    
     }
    });
    buttonNormal.setOnClickListener(new OnClickListener() {
  
     @Override
     public void onClick(View v) {
      zoom(1f,1f,new PointF(0,0));  
     }
    });
    buttonZoomIn.setOnClickListener(new OnClickListener() {
  
     @Override
     public void onClick(View v) {
      zoom(2f,2f,new PointF(0,0));   
     }
    });
   }
  
   /** zooming is done from here */
   public void zoom(Float scaleX,Float scaleY,PointF pivot){
    mainView.setPivotX(pivot.x);
    mainView.setPivotY(pivot.y);  
    mainView.setScaleX(scaleX);
    mainView.setScaleY(scaleY);  
   } 
  }
  </code></pre>