private void InitRecyclerView()
        {
            adapter = new SearchResultsAdapter(this, ActivityNavigator, binding);

            binding.recyclerView.SetAdapter(adapter);
            binding.recyclerView.AddItemDecoration(new DividerItemDecoration(this));
            binding.recyclerView.SetLayoutManager(new LinearLayoutManager(this));
        }
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            SupportActionBar.Title = Resources.GetString(Resource.String.favourites_view);
            SupportActionBar.SetDisplayHomeAsUpEnabled(true);

            ListAdapter = new SearchResultsAdapter(this, new List<Property>() {});

            var app = PropertyCrossApplication.GetApplication(this);
            presenter = (FavouritesPresenter) app.Presenter;
            app.CurrentActivity = this;
        }
Ejemplo n.º 3
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            SupportActionBar.Title = Resources.GetString(Resource.String.favourites_view);
            SupportActionBar.SetDisplayHomeAsUpEnabled(true);

            ListAdapter = new SearchResultsAdapter(this, new List <Property>()
            {
            });

            var app = PropertyFinderApplication.GetApplication(this);

            presenter           = (FavouritesPresenter)app.Presenter;
            app.CurrentActivity = this;
        }
Ejemplo n.º 4
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            SupportActionBar.SetDisplayHomeAsUpEnabled(true);

            LayoutInflater li = (LayoutInflater)GetSystemService(Context.LayoutInflaterService);

            footer        = li.Inflate(Resource.Layout.load_more_footer, null);
            resultDetails = (TextView)footer.FindViewById(Resource.Id.result_details);
            footer.Click += OnFooterClicked;

            ListView.AddFooterView(footer);
            ListAdapter = new SearchResultsAdapter(this, new List <Property>()
            {
            });

            var app = (PropertyFinderApplication)Application;

            presenter = (SearchResultsPresenter)app.Presenter;
            presenter.SetView(this);
            app.CurrentActivity = this;
        }
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            SupportActionBar.SetDisplayHomeAsUpEnabled(true);

            LayoutInflater li = (LayoutInflater)GetSystemService(Context.LayoutInflaterService);
            footer = li.Inflate(Resource.Layout.load_more_footer, null);
            resultDetails = (TextView) footer.FindViewById(Resource.Id.result_details);
            footer.Click += OnFooterClicked;

            ListView.AddFooterView(footer);
            ListAdapter = new SearchResultsAdapter(this, new List<Property>() {});

            var app = PropertyFinderApplication.GetApplication(this);
            presenter = (SearchResultsPresenter) app.Presenter;
            presenter.SetView(this);
            app.CurrentActivity = this;
        }
Ejemplo n.º 6
0
 public void SetFavourites(List <Property> properties)
 {
     ListAdapter = new SearchResultsAdapter(this, properties);
 }
 public void SetFavourites(List<Property> properties)
 {
     ListAdapter = new SearchResultsAdapter(this, properties);
 }