Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. @Override
  2. public void onAttach(Context context) {
  3. super.onAttach(context);
  4. Log.e("ViewSchedule_Day", "OnAttach");
  5. if (context instanceof OnFragmentInteractionListener) {
  6. mListener = (OnFragmentInteractionListener) context;
  7. } else {
  8. throw new RuntimeException(context.toString()
  9. + " must implement OnFragmentInteractionListener");
  10. }
  11. }
  12. @Override
  13. public void onCreate(Bundle savedInstanceState) {
  14. Log.e("ViewSchedule_Day", "Oncreate");
  15. super.onCreate(savedInstanceState);
  16. if (getArguments() != null) {
  17. mDay = getArguments().getInt(ARG_DAY);
  18. }
  19. }
  20.  
  21. @Override
  22. public View onCreateView(LayoutInflater inflater, ViewGroup container,
  23. Bundle savedInstanceState) {
  24. Log.e("ViewSchedule_Day", "OncreateView");
  25. // Inflate the layout for this fragment
  26. View view = inflater.inflate(R.layout.fragment_view_schedule__day, container, false);
  27. return view;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement