protected override void OnCreate(Bundle bundle) { base.OnCreate (bundle); this._feedManager = new FeedManager (); this._feedManager.FeedAdded += this.FeedAdded; SetContentView (Resource.Layout.Main); var drawList = this.FindViewById<ListView>(Resource.Id.DrawNavigation); this._drawListAdapter = new ArrayAdapter<string> ( this, Resource.Layout.DrawListItem, this._feedManager.Feeds.Select(f => f.Name == null ? f.FeedLocation.AbsoluteUri : f.Name).ToList()); drawList.Adapter = this._drawListAdapter; var layout = this.FindViewById<DrawerLayout> (Resource.Id.MainLayout); this.ActionBar.SetDisplayHomeAsUpEnabled (true); this.ActionBar.SetHomeButtonEnabled(true); this._drawToggle = new ActionBarDrawerToggle( this, layout, Resource.Drawable.ic_drawer, Resource.String.DrawerOpen, Resource.String.DrawerClose); layout.SetDrawerListener (this._drawToggle); }
public AddFeedDialog(FeedManager feedManager) { this._feedManager = feedManager; }