public virtual void SetColumnWidth(int columnPosition, int width) { // Firstly set the column header cache map mTableView.GetColumnHeaderLayoutManager().SetCacheWidth(columnPosition, width); // Set each of cell items that is located on the column position mTableView.GetCellLayoutManager().SetCacheWidth(columnPosition, width); }
public ScrollHandler(ITableView tableView) { this.mTableView = tableView; this.mCellLayoutManager = tableView.GetCellLayoutManager(); this.mRowHeaderLayoutManager = tableView.GetRowHeaderLayoutManager(); this.mColumnHeaderLayoutManager = tableView.GetColumnHeaderLayoutManager(); }
public CellLayoutManager(Context context, ITableView tableView) : base(context) { //TODO: Store a single instance for both cell and column cache width values. this.mTableView = tableView; this.mCellRecyclerView = tableView.GetCellRecyclerView(); this.mColumnHeaderLayoutManager = tableView.GetColumnHeaderLayoutManager(); this.mRowHeaderLayoutManager = tableView.GetRowHeaderLayoutManager(); this.mRowHeaderRecyclerView = tableView.GetRowHeaderRecyclerView(); Initialize(); }
public virtual ColumnSortHelper GetColumnSortHelper() { if (mColumnSortHelper == null) { // It helps to store sorting state of column headers this.mColumnSortHelper = new ColumnSortHelper(mTableView.GetColumnHeaderLayoutManager()); } return(mColumnSortHelper); }
public ColumnLayoutManager(Context context, ITableView tableView) : base(context) { this.mTableView = tableView; this.mColumnHeaderRecyclerView = mTableView.GetColumnHeaderRecyclerView(); this.mColumnHeaderLayoutManager = mTableView.GetColumnHeaderLayoutManager(); this.mCellLayoutManager = mTableView.GetCellLayoutManager(); // Set default orientation this.Orientation = Horizontal; //If you are using a RecyclerView.RecycledViewPool, it might be a good idea to set this // flag to true so that views will be available to other RecyclerViews immediately. this.RecycleChildrenOnDetach = true; }
private void ScrollColumnHeader(int columnPosition, int offset) { mTableView.GetColumnHeaderLayoutManager().ScrollToPositionWithOffset(columnPosition, offset); }