コード例 #1
0
 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();
 }
コード例 #2
0
 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;
 }