Advertisement
eirlis

Untitled

Dec 9th, 2016
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.68 KB | None | 0 0
  1. @Override
  2.     public View onCreateView(LayoutInflater inflater, ViewGroup container,
  3.                              Bundle savedInstanceState) {
  4. //        View view = inflater.inflate(R.layout.fragment_recyclerview, container, false);
  5.  
  6.         int id = 0;
  7.  
  8.         switch (mType) {
  9.             case JOB_FEED:
  10.                 id = R.layout.fragment_recyclerview;
  11.                 break;
  12.             case MAP:
  13.                 id = R.layout.fragment_map;
  14.                 break;
  15.             case APPLIED:
  16.                 id = R.layout.fragment_recyclerview;
  17.                 break;
  18.         }
  19.         View view = inflater.inflate(id, container, false);
  20.  
  21.         return view;
  22.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement