setPreferredBitmapConfig

public static void setPreferredBitmapConfig(Config preferredBitmapConfig)

Set a global preferred bitmap config shared by all view instances and applied to new instances initialised after the call is made. This is a hint only; the bundled and ImageRegionDecoder classes all respect this (except when they were constructed with an instance-specific config) but custom decoder classes will not.

Parameters

preferredBitmapConfig

the bitmap configuration to be used by future instances of the view. Pass null to restore the default.