예제 #1
0
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   if (getArguments() != null) {
     mParam1 = getArguments().getString(ARG_PARAM1);
     mParam2 = getArguments().getString(ARG_PARAM2);
   }
 }
예제 #2
0
 @Override
 public void onAttach(Context context) {
   super.onAttach(context);
   if (context instanceof OnFragmentInteractionListener) {
     mListener = (OnFragmentInteractionListener) context;
   } else {
     //            throw new RuntimeException(context.toString()
     //                    + " must implement OnFragmentInteractionListener");
   }
 }
예제 #3
0
 @Override
 public void onDetach() {
   super.onDetach();
   mListener = null;
 }