title: "error: No resource identifier found for attribute 'layout_margintop' in package 'android' " error in android eclipse
body: <p>error: No resource identifier found for attribute 'layout_margintop' in package 'android' is the error im getting in android eclipse in ubuntu. how do i fix this? </p>
  
  <p>I forgot to mention i do have android:layout_marginTop="60dp" in the code as well on the same xml file but its still not working</p>
  
  <p>Edit- Thanks I fixed that error now I am getting another where it says mPagerAdapter =new PagerAdapter(this.getSupportFragmentManager(), fragments); the PagerAdapter cannot be initialised and only PageAdapter is being underlined. the quick fix says to rename in file but i dont think that works or what would i rename it to? your help is greatly appreciated!</p>
  
  <pre><code>package info.androidhive.slidingmenu;
  
  
  import java.util.List;
  import java.util.Vector;
  
  import android.util.Log;
  
  import android.app.Fragment;
  import android.os.Bundle;
  import android.support.v4.app.FragmentActivity;
  import android.support.v4.view.PagerAdapter;
  import android.support.v4.view.ViewPager;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;
  
  public class FindPeopleFragment extends FragmentActivity {
  
  private PagerAdapter mPagerAdapter;
  
  
  
  public FindPeopleFragment(){}
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.order_form);
  
      initialisePaging();
  
      return ;
  }
  
  private void initialisePaging() {
      // TODO Auto-generated method stub
      List&lt;Fragment&gt; fragments = new Vector&lt;Fragment&gt;();
      fragments.add(Fragment.instantiate(this,order_form2.class.getName()));
      mPagerAdapter =new PagerAdapter(this.getSupportFragmentManager(), fragments);
  
      ViewPager pager = (ViewPager) findViewById(R.id.viewpager);
      pager.setAdapter(mPagerAdapter);
  }
  </code></pre>
  
  <p>}</p>
  
  <p>here is the xml file</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:background="@color/list_background_pressed" &gt;
  
  
  &lt;RelativeLayout
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:layout_centerHorizontal="true"
      android:layout_centerVertical="true"
      android:layout_marginBottom="16dp"
      android:layout_marginLeft="16dp"
      android:background="@drawable/layout_bg"
      android:orientation="vertical" &gt;
  
      &lt;android.support.v4.view.ViewPager
          android:id="@+id/viewpager"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent" /&gt;
  
      &lt;EditText
          android:id="@+id/editText1"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_alignParentRight="true"
          android:layout_alignParentTop="true"
          android:layout_marginLeft="10dp"
          android:layout_marginRight="10dp"
          android:layout_marginTop="44dp"
          android:ems="10"
          android:inputType="textPersonName" 
          android:hint="@string/first_name"
          android:background="@drawable/edittext" &gt;
  
          &lt;requestFocus /&gt;
      &lt;/EditText&gt;
  
      &lt;EditText
          android:id="@+id/editText2"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_alignParentRight="true"
          android:layout_below="@+id/editText1"
          android:layout_marginLeft="10dp"
          android:layout_marginRight="10dp"
          android:layout_marginTop="10dp"
          android:ems="10"
          android:hint="@string/last_name"
          android:inputType="textPersonName"
          android:background="@drawable/edittext" /&gt;
  
      &lt;CheckBox
          android:id="@+id/checkBox1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_below="@+id/editText2"
          android:layout_marginTop="10dp"
          android:text="@string/malebutton" /&gt;
  
      &lt;CheckBox
          android:id="@+id/checkBox2"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignBaseline="@+id/checkBox1"
          android:layout_alignBottom="@+id/checkBox1"
          android:layout_marginLeft="14dp"
          android:layout_toRightOf="@+id/checkBox1"
          android:text="@string/femalebutton" /&gt;
  
      &lt;EditText
          android:id="@+id/editText3"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_alignLeft="@+id/editText2"
          android:layout_below="@+id/checkBox1"
          android:layout_marginTop="10dp"
          android:layout_marginRight="10dp"
          android:background="@drawable/edittext"
          android:ems="10"
          android:hint="@string/phonenumber"
          android:inputType="phone" /&gt;
  
      &lt;EditText
          android:id="@+id/editText4"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_alignLeft="@+id/editText3"
          android:layout_below="@+id/editText3"
          android:layout_marginRight="10dp"
          android:layout_marginTop="10dp"
          android:background="@drawable/edittext"
          android:ems="10"
          android:inputType="textEmailAddress"
          android:hint="@string/email_line" /&gt;
  
      &lt;EditText
          android:id="@+id/editText5"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_alignLeft="@+id/editText4"
          android:layout_below="@+id/editText4"
          android:layout_marginRight="10dp"
          android:layout_marginTop="10dp"
          android:background="@drawable/edittext"
          android:ems="10"
          android:hint="@string/affiliate_id" /&gt;
  
      &lt;CheckBox
          android:id="@+id/checkBox3"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_below="@+id/editText5"
          android:layout_marginTop="10dp"
          android:text="@string/checkbox3" /&gt;
  
      &lt;CheckBox
          android:id="@+id/checkBox4"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_below="@+id/checkBox3"
          android:layout_marginTop="10dp"
          android:text="@string/checkbox4" /&gt;
  &lt;/RelativeLayout&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>