added in version 24.1.0
  
    
belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
  
   
  
  
  
  
belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
ConfigurationHelper
  public
  
  final
  
  class
  ConfigurationHelper
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | android.support.v4.content.res.ConfigurationHelper | 
Helper class which allows access to properties of Configuration in
 a backward compatible fashion.
Summary
Public methods | |
|---|---|
        
        
        static
        
        
        int
     | 
  
    
      
      getDensityDpi(Resources resources)
      
      
        Returns the target screen density being rendered to.  | 
  
Inherited methods | |
|---|---|
  
    
  
    java.lang.Object
  
 | |
Public methods
getDensityDpi
    added in version 24.1.0
      
  
    int getDensityDpi (Resources resources)
Returns the target screen density being rendered to.
Uses Configuration.densityDpi when available, otherwise an approximation
 is computed and returned.
| Parameters | |
|---|---|
resources | 
        
          Resources  | 
      
| Returns | |
|---|---|
int | 
        |