コード例 #1
0
        protected override void CreateContentView()
        {
            base.CreateContentView();

            _container = new FormsViewContainer(Context);


            _coreView = FindViewById <LinearLayout>(Resource.Id.CellBody);
            ContentStack.RemoveFromParent();
            DescriptionLabel.RemoveFromParent();

            if (CustomCell.UseFullSize)
            {
                IconView.RemoveFromParent();
                var layout  = FindViewById <ARelativeLayout>(Resource.Id.CellLayout);
                var rMargin = CustomCell.ShowArrowIndicator ? _Context.ToPixels(10) : 0;
                layout.SetPadding(0, 0, (int)rMargin, 0);
                _coreView.SetPadding(0, 0, 0, 0);
            }

            _coreView.AddView(_container);
        }