Temporarily tweaking the all apps layout to fit the screen on tablets.

Change-Id: I2f8fe8e39a39cd6a055f22696881c51be7624832
This commit is contained in:
Winson Chung
2015-04-08 11:07:53 -07:00
parent adb7541648
commit bd808530db
4 changed files with 11 additions and 7 deletions

View File

@@ -429,7 +429,7 @@ public class DeviceProfile {
int availableAppsWidthPx = (appsContainerViewPx > 0) ? appsContainerViewPx :
availableWidthPx;
appsViewNumCols = (availableAppsWidthPx - appsViewLeftMarginPx) /
(allAppsCellWidthPx + allAppsCellPaddingPx);
(allAppsCellWidthPx + 2 * allAppsCellPaddingPx);
}
void updateFromConfiguration(Context context, Resources resources, int wPx, int hPx,