diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2016-07-07 16:43:58 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2016-07-07 16:57:49 -0700 |
commit | 819e1936bba39219a8fb2ceef5d172ca667e6658 (patch) | |
tree | edcba764dd55cf94b765604a3937fd42c01d8818 /res/values/attrs.xml | |
parent | e49a97aba08ac5a5a3de2c09cc2ae027a13f7d75 (diff) | |
download | android_packages_apps_Trebuchet-819e1936bba39219a8fb2ceef5d172ca667e6658.tar.gz android_packages_apps_Trebuchet-819e1936bba39219a8fb2ceef5d172ca667e6658.tar.bz2 android_packages_apps_Trebuchet-819e1936bba39219a8fb2ceef5d172ca667e6658.zip |
Defining the list of predefined device profiles in xml.
This allows the profiles to be easily customized by derivatives.
Change-Id: Iaec2b7a0eda34581c8e48b7dc44817013632dabe
Diffstat (limited to 'res/values/attrs.xml')
-rw-r--r-- | res/values/attrs.xml | 24 |
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> |