Tag: Android的工具栏

Xamarin如何从android项目打开xamarin表单页面?

我想从Xamarin Android项目打开Xamarin表单页面。 在android项目中,我创建了太棒项目图像,我在这里调用事件从Xamarin表单项目打开页面。 这是我的MainActivity.cs toolabar图像项实现: public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsApplicationActivity { private IMenu CurrentMenu { get; set; } private ImageView imgSmallC { get; set; } public override bool OnCreateOptionsMenu(IMenu menu) { ActionBar.DisplayOptions = ActionBarDisplayOptions.HomeAsUp | ActionBarDisplayOptions.ShowCustom | ActionBarDisplayOptions.ShowTitle | ActionBarDisplayOptions.ShowHome; LayoutInflater inflater = (LayoutInflater)ActionBar.ThemedContext.GetSystemService(LayoutInflaterService); View customActionBarView = inflater.Inflate(Resource.Layout.actionbar_custom_view_done, null); imgSmallC = (ImageView)customActionBarView.FindViewById(Resource.Id.ImgSmallC); imgSmallC.Click += (object […]