  package fragment.fragmentdemo;
  import android.app.Fragment;
  import android.os.Bundle;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;

  public class FragmentA extends Fragment {
    @Override
    public View onCreateView(LayoutInflater inflater,
    ViewGroup container, Bundle savedInstanceState) {
      //Inflate the layout for this fragment
      return inflater.inflate(R.layout.fragment_a,container,false);
    }
  }