Android Get Integer Resource Code Example
Example: android integer resource
in res/values/dimens.xml: <integer name="grid_columns">1</integer> in res/values-w600dp/dimens.xml: <integer name="grid_columns">2</integer> in java: int gridColumns = getResources().getInteger(R.integer.grid_columns);
Comments
Post a Comment