LablancaNoFestivalsLayout.java 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package com.ivalentin.margolariak;
  2. import android.annotation.SuppressLint;
  3. import android.app.Fragment;
  4. import android.os.Bundle;
  5. import android.text.Html;
  6. import android.view.LayoutInflater;
  7. import android.view.View;
  8. import android.view.ViewGroup;
  9. import android.widget.TextView;
  10. /**
  11. * Fragment openen for La Blanca sections while the festivals are not close.
  12. *
  13. * @see Fragment
  14. *
  15. * @author Iñigo Valentin
  16. *
  17. */
  18. public class LablancaNoFestivalsLayout extends Fragment {
  19. /**
  20. * Run when the fragment is inflated.
  21. *
  22. * @param inflater A LayoutInflater to manage views
  23. * @param container The container View
  24. * @param savedInstanceState Bundle containing the state
  25. * @return The fragment view
  26. * @see android.app.Fragment#onCreateView(android.view.LayoutInflater, android.view.ViewGroup, android.os.Bundle)
  27. */
  28. @Override
  29. @SuppressLint("InflateParams")
  30. public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
  31. //Load the layout
  32. View view = inflater.inflate(R.layout.fragment_layout_lablanca_nofestivals, null);
  33. //Set the title
  34. ((MainActivity) getActivity()).setSectionTitle(view.getContext().getString(R.string.menu_lablanca));
  35. return view;
  36. }
  37. }