Esempio n. 1
0
        public bool Load(IModuleContext context)
        {
            BindingResourceExtensions.ColorHandler    = ContextCompat.GetColor;
            BindingResourceExtensions.DrawableHandler = ContextCompat.GetDrawable;
            var isActionBar = AndroidToolkitExtensions.IsActionBar;
            var isFragment  = AndroidToolkitExtensions.IsFragment;

            AndroidToolkitExtensions.IsActionBar = o => isActionBar(o) || o is ActionBar;
            AndroidToolkitExtensions.IsFragment  = o => isFragment(o) || o is Fragment;

            AttachedMembersRegistration.RegisterToolbarMembers();
            AttachedMembersRegistration.RegisterDrawerLayoutMembers();
            AttachedMembersRegistration.RegisterViewPagerMembers();
            AttachedMembersRegistration.RegisterPopupMenuMembers();
            AttachedMembersRegistration.RegisterMenuItemMembers();
            AttachedMembersRegistration.RegisterMenuItemActionViewMembers();
            AttachedMembersRegistration.RegisterMenuItemActionProviderMembers();
            AttachedMembersRegistration.RegisterSearchViewMembers();
            AttachedMembersRegistration.RegisterActionBarBaseMembers();
            AttachedMembersRegistration.RegisterActionBarMembers();
            AttachedMembersRegistration.RegisterActionBarTabMembers();

            return(true);
        }