Hey Vladimir, I've got the Navigation Drawer working on 2.3 with both ActionBarSherlock and the support library ActionBar.
If you are using ActionBarSherlock you just need need to subclass ActionBarDrawerToggle and provide an implementation of OnOptionsItemSelected that takes the ActionBarSherlock version of IMenuItem. Fortunately it's pretty straightforward: public class MainActivityDrawerToggle : ActionBarDrawerToggle { private const decimal IdHome = 0x0102002c; private readonly DrawerLayout _drawerLayout; public MainActivityDrawerToggle(Activity activity, DrawerLayout drawerLayout, int drawerImageRes, int openDrawerContentDescRes, int closeDrawerContentDescRes) : base(activity, drawerLayout, drawerImageRes, openDrawerContentDescRes, closeDrawerContentDescRes) { _drawerLayout = drawerLayout; } public bool OnOptionsItemSelected(IMenuItem item) { if (item != null && (item.ItemId == IdHome || item.ItemId == Resource.Id.abs__home)) { if (_drawerLayout.IsDrawerVisible(GravityCompat.Start)) _drawerLayout.CloseDrawer(GravityCompat.Start); else _drawerLayout.OpenDrawer(GravityCompat.Start); return true; } return false; } } If you want to use the V7-AppCompat library I have some bindings here: https://github.com/jkells/xamarin-android-support-binding there are instructions in the readme but you need to use the revision 18 version of the v4 support library from the component store and you need to build the v7-appcompat library in eclipse first. Cheers, Jared On Sat, Oct 5, 2013 at 5:02 AM, Vladimir Dimitrov <vlad.dimit...@gmail.com>wrote: > Hey guys, > > did someone got a working NavigationDrawer with and older version of > Android? My problem is that I have to communicate with ActionBar which is > available through the Mono.Anroid.Support.v7 which does not exist afaik. > > I tried with the SherlockActionBar but it uses it's own version of some > interfaces like IMenu and this causes a problem while trying to connect > with the NavigationDrawer. > > Thanks, > Vladimir > ______________________________**_________________ > Monodroid mailing list > Monodroid@lists.ximian.com > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/**mailman/listinfo/monodroid<http://lists.ximian.com/mailman/listinfo/monodroid> >
_______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid