private void initArcMenu(ArcMenu menu, int[] itemDrawables) { int itemCount = itemDrawables.Length; for (int i = 0; i < itemCount; i++) { ImageView item = new ImageView(this); item.SetImageResource(itemDrawables[i]); int position = i; menu.addItem(item, new OnClickListenerEmpty()); } }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set our view from the "main" layout resource SetContentView(Resource.Layout.main); ArcMenu arcMenu = FindViewById <ArcMenu>(Resource.Id.arc_menu3); ArcMenu arcMenu2 = FindViewById <ArcMenu>(Resource.Id.arc_menu_2); initArcMenu(arcMenu, ITEM_DRAWABLES); initArcMenu(arcMenu2, ITEM_DRAWABLES); }