Advertisement
Guest User

DayFragment.java

a guest
Sep 9th, 2016
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.82 KB | None | 0 0
  1. package com.nielyouri.pluff;
  2.  
  3. import android.os.Bundle;
  4. import android.support.v4.app.Fragment;
  5. import android.view.LayoutInflater;
  6. import android.view.View;
  7. import android.view.ViewGroup;
  8. import android.widget.TextView;
  9.  
  10. public class DayFragment extends Fragment {
  11.     public static final String ARG_OBJECT = "object";
  12.  
  13.     @Override
  14.     public View onCreateView(LayoutInflater inflater,
  15.                              ViewGroup container,
  16.                              Bundle savedInstanceState) {
  17.  
  18.         View rootView = inflater.inflate(
  19.                 R.layout.fragment_collection_object, container, false);
  20.         Bundle args = getArguments();
  21.         ((TextView) rootView.findViewById(android.R.id.text1)).setText(
  22.                 Integer.toString(args.getInt(ARG_OBJECT)));
  23.  
  24.         return rootView;
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement