Example #1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.activity_main);
            toolbar = (Android.Support.V7.Widget.Toolbar)FindViewById(Resource.Id.toolbar);
            SetSupportActionBar(toolbar);

            // recycler of view of post decalration
            postRecyclerView = (RecyclerView)FindViewById(Resource.Id.postRecycleView);

            layStatus        = (RelativeLayout)FindViewById(Resource.Id.layStatus);
            layStatus.Click += LayStatus_Click;
            camera           = (ImageView)FindViewById(Resource.Id.camera);
            camera.Click    += LayStatus_Click;

            // Retereive fullname login

            FullnameListener fullnameListener = new FullnameListener();

            fullnameListener.FetchUser();

            //CreateData();
            FetchPost();
        }
Example #2
0
 protected override void OnCreate(Bundle savedInstanceState)
 {
     base.OnCreate(savedInstanceState);
     Xamarin.Essentials.Platform.Init(this, savedInstanceState);
     // Set our view from the "main" layout resource
     SetContentView(Resource.Layout.activity_main);
     conversations    = new List <Conversation>();
     fullnameListener = new FullnameListener();
     fullnameListener.FetchUser();
     ConnectViews();
     if (conversations.Count == 0)
     {
         GetConversations();
     }
 }