Creating the ClientsListActivity

Let's move back again to the Chat.Droid project. Create a new folder called Views, add in a new file called ClientsListView.cs, and implement the following:

[Activity(Label = "Chat Room", Icon = "@drawable/icon", ScreenOrientation = ScreenOrientation.Portrait)] public class ClientsListActivity : ListActivity, ClientsListPresenter.IClientsListView { #region Private Properties private ClientsListPresenter _presenter; private ClientsListAdapter _adapter; private bool _dialogShown = false; #endregion #region Protected Methods protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); ListView.SetBackgroundColor(Color.White); var app = ChatApplication.GetApplication(this); app.CurrentActivity = this; _presenter ...

Get Xamarin Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.