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;
}
Aggregations