@Override public void onPause() { // TODO Auto-generated method stub super.onPause(); // if (surfaceView!=null) { // wm.removeViewImmediate(surfaceView); // } }
@Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); EventBus.getDefault().register(this); mController = (TraininfomationController) ControllerManager.newController(getActivity(), TraininfomationController.class); Builder builder = new Builder(); Request request = builder.obtain(Request.Action.GET_SCHEDULE).getResult(); mController.handle(request); }
@Override public View onCreateView( LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { super.onCreate(savedInstanceState); View v = inflater.inflate(R.layout.fragment_traininformation, container, false); listview = (ListView) v.findViewById(R.id.traininformation_listview); tableAdapter = new TraininformationTableAdapter(getActivity(), table); listview.setAdapter(tableAdapter); listview.setDividerHeight(0); return v; }
@Override public void onStop() { EventBus.getDefault().unregister(this); super.onStop(); }
@Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); }
@Override public void onStart() { // TODO Auto-generated method stub super.onStart(); }
@Override public void onDestroy() { if (null != table) table.clear(); super.onDestroy(); }