More grid changes, closer to final specs.
* Added isScalable, minCellWidth, minCellHeight, and borderSpacing attrs When isScalable is true, we use set workspace cell values to minCellWidth/minCellHeight and then scale the cell values to fit the available space. This allows us to have consistent aspect ratios when two devices match the display/grid options. This is different from the dynamic grid, which calculates cell values based on iconSize/textSize/etc and then allows the cell width to be as wide as space allows. I adjusted some variables so that they will auto adjust based on another value, indepenent from whether the grid isScalable or not. An example of this is the folder label text, where it's always set to be 1.14x of whatever the workspace icon text size is. This is so we don't need to add a bunch of more variables to DisplayOption/GridOption. Bug: 175329686 Test: - switching between device profiles, - testing folder open/close - testing in multiwindow - testing in landscape Change-Id: Ia469ae0d65b518469ef264b726db46f4a3210056
Loading
Please register or sign in to comment