protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.PozoviPrijatelja);

            SupportActionBar.SetDisplayShowHomeEnabled(true);

            try
            {
                List <KorisnikFollowDto> listaPrijatelja = Api.Api.UsersThatFollows();
                //FindViewById<ListView>(Resource.Id.listaPrijatelja).Adapter = new PozoviPrijateljaAdapter(this, listaPrijatelja);

                _listView         = FindViewById <ListView>(Resource.Id.listaPrijatelja);
                adapter           = new MojiPrijateljiAdapter(this, listaPrijatelja);
                _listView.Adapter = adapter;
            }
            catch (Exception ex)
            {
                Toast.MakeText(this, ex.Message, ToastLength.Short).Show();
            }
        }
Example #2
0
 public PronadjiPrijatelja(MojiPrijateljiAdapter a)
 {
     this.adapter = a;
 }