Search in sources :

Example 1 with FeedAdapter

use of com.my.targetDemoApp.adapters.FeedAdapter in project mytarget-android by myTargetSDK.

the class FeedFragment method onViewCreated.

@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
    super.onViewCreated(view, savedInstanceState);
    Bundle args = getArguments();
    AdvertisingType advertisingType = args.getParcelable(ARG_KEY);
    listView = (ListView) view.findViewById(R.id.list_view);
    if (advertisingType != null) {
        feedAdapter = new FeedAdapter(advertisingType, view.getContext());
        listView.setAdapter(feedAdapter);
    }
}
Also used : Bundle(android.os.Bundle) AdvertisingType(com.my.targetDemoApp.models.AdvertisingType) FeedAdapter(com.my.targetDemoApp.adapters.FeedAdapter)

Aggregations

Bundle (android.os.Bundle)1 FeedAdapter (com.my.targetDemoApp.adapters.FeedAdapter)1 AdvertisingType (com.my.targetDemoApp.models.AdvertisingType)1