Advertisement
Guest User

Untitled

a guest
Mar 31st, 2015
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. package com.example.jason.kristinintroduction;
  2.  
  3. import android.app.Activity;
  4. import android.os.Bundle;
  5. import android.support.v4.app.Fragment;
  6. import android.view.LayoutInflater;
  7. import android.view.View;
  8. import android.view.ViewGroup;
  9.  
  10. public class english_3_fragment extends Fragment {
  11.  
  12. /**
  13. * Returns a new instance of this fragment for the given section number.
  14. */
  15. public static english_3_fragment newInstance() {
  16. english_3_fragment fragment = new english_3_fragment();
  17. return fragment;
  18. }
  19.  
  20. public english_3_fragment () {
  21. }
  22.  
  23. @Override
  24. public View onCreateView(LayoutInflater inflater, ViewGroup container,
  25. Bundle savedInstanceState) {
  26. View rootView = inflater.inflate(R.layout.fragment_english_1, container,
  27. false);
  28. return rootView;
  29. }
  30.  
  31. @Override
  32. public void onAttach(Activity activity) {
  33. super.onAttach(activity);
  34. ((Kristin_Introduction) activity).onSectionAttached(3);
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement