public ItemCellView(ColumnModel column, CellModel cell, Activity context) { this.type = cell.CellType(); this.column = column.GetItemView(context); this.cell = cell.GetView(context); mainView = new LinearLayout(context) { Orientation = Orientation.Vertical }; LinearLayout.LayoutParams p = new LinearLayout.LayoutParams (LinearLayout.LayoutParams.WrapContent, LinearLayout.LayoutParams.WrapContent) { Gravity = GravityFlags.CenterHorizontal }; mainView.LayoutParameters = p; mainView.Clickable = false; mainView.Focusable = false; }