Exemplo n.º 1
0
        private async void OlderTweetsButton_Click(object sender, EventArgs e)
        {
            tweetsToDisplay = await twitterServices.search(searchTerm.Text, tweetsToDisplay.smallestTweetId, true);

            TweetItemAdapter adapter = new TweetItemAdapter(this, Resource.Layout.listitem, tweetsToDisplay.searchResults.ToList <Tweet>());

            tweetViewer.Adapter = adapter;
        }
Exemplo n.º 2
0
        private async void B_Click(object sender, EventArgs e)
        {
            startSearchToast.Show();
            tweetsToDisplay = await twitterServices.search(searchTerm.Text, null, null);

            TweetItemAdapter adapter = new TweetItemAdapter(this, Resource.Layout.listitem, tweetsToDisplay.searchResults.ToList <Tweet>());

            tweetViewer.Adapter          = adapter;
            olderTweetsButton.Visibility = ViewStates.Visible;
            newerTweetsButton.Visibility = ViewStates.Visible;
        }