public GlobalLayoutListener(Android.App.Activity activity, SoftwareKeyboardService softwarekeyboardservice)
 {
     _softwarekeyboardservice = softwarekeyboardservice;
     _activity = activity;
     ObtainInputManager();
     GetDisplayData();
 }
Пример #2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);

            // if you need to size the screen yourself, register this service to get notified when
            // the keyboard appears or disappears and get the current keyboard height along with it.
            // It also has a property if the keyboard is currently visible
            SoftwareKeyboardService softwarekeyboardservice = new SoftwareKeyboardService(this);

            // in your app you would probably Resolve this through some sort of IOC container
            LoadApplication(new App(softwarekeyboardservice));
        }