protected override void OnCreate(Bundle bundle) { base.OnCreate (bundle); //RECYCLER VIEW mObject = new SideBySideObject (); mAdapter = new SideBySideAdapter (mObject, this, false); SetContentView (Resource.Layout.BrowseNationalities); mRecyclerView = FindViewById<v7Widget.RecyclerView> (Resource.Id.recyclerView); mRecyclerView.SetAdapter (mAdapter); mLayoutManager = new v7Widget.LinearLayoutManager (this); mRecyclerView.SetLayoutManager (mLayoutManager); //MENU VIEW Button menu_button = FindViewById<Button> (Resource.Id.menu_button); MenuButtonSetupSuperClass (menu_button); // menu_button.Click += (s, arg) => { // menu_button.SetBackgroundResource(Resource.Drawable.pressed_lines); // PopupMenu menu = new PopupMenu (this, menu_button); // menu.Inflate (Resource.Menu.Main_Menu); // menu.MenuItemClick += this.MenuButtonClick; // menu.DismissEvent += (s2, arg2) => { // menu_button.SetBackgroundResource(Resource.Drawable.menu_lines); // Console.WriteLine ("menu dismissed"); // }; // menu.Show (); // }; }
public SideBySideAdapter(SideBySideObject inSideBySideObject, CustomActivity inActivity, bool searchLanding) { this.mSideBySideObject = inSideBySideObject; this.callingActivity = inActivity; this.searchLanding = searchLanding; }