summaryrefslogtreecommitdiffstats
path: root/res/values
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2016-07-11 21:16:33 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2016-07-11 21:16:33 +0000
commit6f21ff341b92f4ad9ad5516da387b64822dc1441 (patch)
treefeff7ba221efa61876c9926312bf0ab95fd44aae /res/values
parentc9b6d8432837c578b602a0d779bc425db27cb42e (diff)
parent819e1936bba39219a8fb2ceef5d172ca667e6658 (diff)
downloadandroid_packages_apps_Trebuchet-6f21ff341b92f4ad9ad5516da387b64822dc1441.tar.gz
android_packages_apps_Trebuchet-6f21ff341b92f4ad9ad5516da387b64822dc1441.tar.bz2
android_packages_apps_Trebuchet-6f21ff341b92f4ad9ad5516da387b64822dc1441.zip
Merge "Defining the list of predefined device profiles in xml. This allows the profiles to be easily customized by derivatives." into ub-launcher3-calgary
Diffstat (limited to 'res/values')
-rw-r--r--res/values/attrs.xml24
1 files changed, 24 insertions, 0 deletions
diff --git a/res/values/attrs.xml b/res/values/attrs.xml
index 21a05c065..308c71c41 100644
--- a/res/values/attrs.xml
+++ b/res/values/attrs.xml
@@ -85,4 +85,28 @@
<!-- Fallback attr for pre-API 25 support -->
<attr name="colorSecondary" format="reference|color" />
+
+ <declare-styleable name="InvariantDeviceProfile">
+ <attr name="name" format="string" />
+ <attr name="minWidthDps" format="float" />
+ <attr name="minHeightDps" format="float" />
+
+ <attr name="numRows" format="integer" />
+ <attr name="numColumns" format="integer" />
+ <!-- numFolderRows & numFolderColumns defaults to numRows & numColumns, if not specified -->
+ <attr name="numFolderRows" format="integer" />
+ <attr name="numFolderColumns" format="integer" />
+ <!-- minAllAppsPredictionColumns defaults to numColumns, if not specified -->
+ <attr name="minAllAppsPredictionColumns" format="integer" />
+ <!-- numHotseatIcons defaults to numColumns, if not specified -->
+ <attr name="numHotseatIcons" format="integer" />
+
+ <attr name="iconSize" format="float" />
+ <attr name="iconTextSize" format="float" />
+ <!-- hotseatIconSize defaults to iconSize, if not specified -->
+ <attr name="hotseatIconSize" format="float" />
+
+ <attr name="defaultLayoutId" format="reference" />
+ </declare-styleable>
+
</resources>