ConfigurationHelper

Added in 1.1.0

public final class ConfigurationHelper


Helper class which allows access to properties of Configuration in a backward compatible fashion.

Summary

Public methods

static int

Returns the target screen density being rendered to.

Public methods

getDensityDpi

Added in 1.1.0
public static int getDensityDpi(@NonNull Resources resources)

Returns the target screen density being rendered to.

Uses Configuration.densityDpi when available, otherwise an approximation is computed and returned.