void TabSetup(ActionBar.Tab tab, int resourceId) { if (resourceId != 0) { //if (Droid.OS.Build.VERSION.SdkInt > Droid.OS.BuildVersionCodes.JellyBeanMr1) { // ImageView iv = new ImageView(activity); // iv.SetImageResource(resourceId); // iv.SetPadding(-25, 8, -25, 16); // tab.SetCustomView(iv); //} else { tab.SetIcon(resourceId); tab.SetText(""); //} } tab.TabSelected -= TabOnTabSelected; tab.TabSelected += TabOnTabSelected; }