📜  android 整数资源 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:11.107000             🧑  作者: Mango

代码示例1
in res/values/dimens.xml:

1

in res/values-w600dp/dimens.xml:

2

in java:

int gridColumns = getResources().getInteger(R.integer.grid_columns);