Create attr for padding between icon and text in cells
Bug: 265210314 Test: DeviceProfileDumpTest Change-Id: I00af790d0c21c35f1cbce1362e63d3ab8259244a (cherry picked from commit 60cab75576e9f844fcaae8f0723a075f2a00bb1f) Merged-In: I00af790d0c21c35f1cbce1362e63d3ab8259244a
This commit is contained in:
1 parent
c0f68d56dd
commit
903d0a3e63
6 files changed
+63
-14
No files matched your search
@@ -143,6 +143,8 @@ public class InvariantDeviceProfile {
|
||||
|
||||
public @StyleRes int folderStyle;
|
||||
|
||||
public @StyleRes int cellStyle;
|
||||
|
||||
public float[] horizontalMargin;
|
||||
|
||||
public PointF[] allAppsCellSize;
|
||||
@@ -349,6 +351,8 @@ public class InvariantDeviceProfile {
|
||||
numFolderColumns = closestProfile.numFolderColumns;
|
||||
folderStyle = closestProfile.folderStyle;
|
||||
|
||||
cellStyle = closestProfile.cellStyle;
|
||||
|
||||
isScalable = closestProfile.isScalable;
|
||||
devicePaddingId = closestProfile.devicePaddingId;
|
||||
this.deviceType = deviceType;
|
||||
@@ -783,6 +787,7 @@ public class InvariantDeviceProfile {
|
||||
private final int numFolderRows;
|
||||
private final int numFolderColumns;
|
||||
private final @StyleRes int folderStyle;
|
||||
private final @StyleRes int cellStyle;
|
||||
|
||||
private final int numAllAppsColumns;
|
||||
private final int numDatabaseAllAppsColumns;
|
||||
@@ -852,6 +857,9 @@ public class InvariantDeviceProfile {
|
||||
folderStyle = a.getResourceId(R.styleable.GridDisplayOption_folderStyle,
|
||||
INVALID_RESOURCE_HANDLE);
|
||||
|
||||
cellStyle = a.getResourceId(R.styleable.GridDisplayOption_cellStyle,
|
||||
R.style.CellStyleDefault);
|
||||
|
||||
isScalable = a.getBoolean(
|
||||
R.styleable.GridDisplayOption_isScalable, false);
|
||||
devicePaddingId = a.getResourceId(
|
||||
|
||||
Reference in new issue
Block a user