protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.activity_home); if (Intent.Extras != null) { foreach (var key in Intent.Extras.KeySet()) { if (key != null) { var value = Intent.Extras.GetString(key); Log.Debug(TAG, "Key: {0} Value: {1}", key, value); } } } IsPlayServicesAvailable(); CreateNotificationChannel(); mPhotoAlbum = new PhotoAlbum(); putData(); mLayoutManager = new LinearLayoutManager(this); mAdapter = new PhotoAdapter(mPhotoAlbum, dList); mAdapter.ItemClick += MAdapter_ItemClick; mRecycleView = FindViewById <RecyclerView>(Resource.Id.recyclerView); mRecycleView.SetLayoutManager(mLayoutManager); mRecycleView.SetAdapter(mAdapter); }
public HouseAdapter(Housephoto houseAlbum, List <HouseData> list) { mPhotoAlbum = houseAlbum; houseList = list; }