NewsFragment.java 982 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package com.uas.module.news;
  2. import android.os.Bundle;
  3. import android.support.v4.app.Fragment;
  4. import android.view.LayoutInflater;
  5. import android.view.View;
  6. import android.view.ViewGroup;
  7. import com.uas.module.common.base.BaseFragment;
  8. /**
  9. * A simple {@link Fragment} subclass.
  10. */
  11. public class NewsFragment extends BaseFragment {
  12. /**
  13. * Use this factory method to create a new instance of
  14. * this fragment using the provided parameters.
  15. *
  16. * @return A new instance of fragment NewsFragment.
  17. */
  18. public static NewsFragment newInstance() {
  19. return new NewsFragment();
  20. }
  21. public NewsFragment() {
  22. // Required empty public constructor
  23. }
  24. @Override
  25. public View onCreateView(LayoutInflater inflater, ViewGroup container,
  26. Bundle savedInstanceState) {
  27. // Inflate the layout for this fragment
  28. return inflater.inflate(R.layout.fragment_news, container, false);
  29. }
  30. }