Search in sources :

Example 1 with AppletsApiSponsorRequest

use of ca.etsmtl.applets.etsmobile.http.AppletsApiSponsorRequest in project ETSMobile-Android2 by ApplETS.

the class SponsorsFragment method onCreateView.

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    ViewGroup v = (ViewGroup) inflater.inflate(R.layout.fragment_sponsors, container, false);
    loadingView = (LoadingView) v.findViewById(R.id.loadingView_sponsor);
    sponsorGridView = (GridView) v.findViewById(R.id.gridView_sponsor);
    sponsorList = new ArrayList<Sponsor>();
    mSponsorManager = new SponsorManager(getActivity());
    mSponsorManager.addObserver(this);
    loadingView.showLoadingView();
    refreshList();
    dataManager.sendRequest(new AppletsApiSponsorRequest(getActivity()), this);
    AnalyticsHelper.getInstance(getActivity()).sendScreenEvent(getClass().getSimpleName());
    return v;
}
Also used : AppletsApiSponsorRequest(ca.etsmtl.applets.etsmobile.http.AppletsApiSponsorRequest) ViewGroup(android.view.ViewGroup) Sponsor(ca.etsmtl.applets.etsmobile.model.Sponsor) SponsorManager(ca.etsmtl.applets.etsmobile.util.SponsorManager)

Aggregations

ViewGroup (android.view.ViewGroup)1 AppletsApiSponsorRequest (ca.etsmtl.applets.etsmobile.http.AppletsApiSponsorRequest)1 Sponsor (ca.etsmtl.applets.etsmobile.model.Sponsor)1 SponsorManager (ca.etsmtl.applets.etsmobile.util.SponsorManager)1