Search in sources :

Example 1 with MainActivity

use of ca.etsmtl.applets.etsmobile.ui.activity.MainActivity in project ETSMobile-Android2 by ApplETS.

the class ProfilFragment method onCreateView.

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    ViewGroup v = (ViewGroup) inflater.inflate(R.layout.fragment_profil, container, false);
    super.onCreateView(inflater, v, savedInstanceState);
    ((MainActivity) getActivity()).setTitle(getFragmentTitle());
    loadingView.showLoadingView();
    dataManager.getDataFromSignet(SignetMethods.INFO_ETUDIANT, ApplicationManager.userCredentials, this, "");
    dataManager.getDataFromSignet(SignetMethods.LIST_PROGRAM, ApplicationManager.userCredentials, this, "");
    listViewProfile = (ListView) v.findViewById(R.id.listview_profile);
    listViewProfile.setAdapter(profileAdapter);
    profilManager = new ProfilManager(getActivity());
    AnalyticsHelper.getInstance(getActivity()).sendScreenEvent(getClass().getSimpleName());
    return v;
}
Also used : ViewGroup(android.view.ViewGroup) MainActivity(ca.etsmtl.applets.etsmobile.ui.activity.MainActivity) ProfilManager(ca.etsmtl.applets.etsmobile.util.ProfilManager)

Aggregations

ViewGroup (android.view.ViewGroup)1 MainActivity (ca.etsmtl.applets.etsmobile.ui.activity.MainActivity)1 ProfilManager (ca.etsmtl.applets.etsmobile.util.ProfilManager)1