| java.lang.Object | |
| ↳ | android.view.ViewConfiguration | 
Contains methods to standard constants used in the UI for timeouts, sizes, and distances.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  | 
          
           This constructor was deprecated
      in API level 3.
    Use
            
            
             get(android.content.Context)
            
           instead. | ||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  | 
          Returns a configuration for the specified context.
          | ||||||||||
|  |  | ||||||||||
|  | 
          
           This method was deprecated
      in API level 3.
    Use
            
            
             getScaledEdgeSlop()
            
           instead. | ||||||||||
|  | 
          
           This method was deprecated
      in API level 3.
    Use
            
            
             getScaledFadingEdgeLength()
            
           instead. | ||||||||||
|  | 
          
           This method was deprecated
      in API level 20.
    This timeout should not be used by applications
          
          | ||||||||||
|  |  | ||||||||||
|  |  | ||||||||||
|  |  | ||||||||||
|  |  | ||||||||||
|  | 
          
           This method was deprecated
      in API level 3.
    Use
            
            
             getScaledMaximumDrawingCacheSize()
            
           instead. | ||||||||||
|  | 
          
           This method was deprecated
      in API level 4.
    Use
            
            
             getScaledMaximumFlingVelocity()
            
           instead. | ||||||||||
|  | 
          
           This method was deprecated
      in API level 3.
    Use
            
            
             getScaledMinimumFlingVelocity()
            
           instead. | ||||||||||
|  |  | ||||||||||
|  |  | ||||||||||
|  |  | ||||||||||
|  |  | ||||||||||
|  | 
          The maximum drawing cache size expressed in bytes.
          | ||||||||||
|  |  | ||||||||||
|  |  | ||||||||||
|  |  | ||||||||||
|  |  | ||||||||||
|  |  | ||||||||||
|  |  | ||||||||||
|  |  | ||||||||||
|  |  | ||||||||||
|  |  | ||||||||||
|  | 
          
           This method was deprecated
      in API level 3.
    Use
            
            
             getScaledScrollBarSize()
            
           instead. | ||||||||||
|  |  | ||||||||||
|  | 
          The amount of friction applied to scrolls and flings.
          | ||||||||||
|  |  | ||||||||||
|  | 
          
           This method was deprecated
      in API level 3.
    Use
            
            
             getScaledTouchSlop()
            
           instead. | ||||||||||
|  | 
          
           This method was deprecated
      in API level 3.
    Use
            
            
             getScaledWindowTouchSlop()
            
           instead. | ||||||||||
|  | 
          The amount of time that the zoom controls should be
 displayed on the screen expressed in milliseconds.
          | ||||||||||
|  | 
          Report if the device has a permanent menu key available to the user.
          | ||||||||||
| [Expand] 
          Inherited Methods
          | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  From class
         
          java.lang.Object | |||||||||||
Returns a configuration for the specified context. The configuration depends on various parameters of the context, like the dimension of the display or the density of the display.
| context | The application context used to initialize the view configuration. | 
|---|
        
         This method was deprecated
      in API level 3.
        
        
        Use
        
         
          getScaledEdgeSlop()
         
        
        instead.
       
        
         This method was deprecated
      in API level 3.
        
        
        Use
        
         
          getScaledFadingEdgeLength()
         
        
        instead.
       
        
         This method was deprecated
      in API level 20.
        
        
        This timeout should not be used by applications
       
The amount of time a user needs to press the relevant key to bring up the global actions dialog.
        
         This method was deprecated
      in API level 3.
        
        
        Use
        
         
          getScaledMaximumDrawingCacheSize()
         
        
        instead.
       
The maximum drawing cache size expressed in bytes.
        
         This method was deprecated
      in API level 4.
        
        
        Use
        
         
          getScaledMaximumFlingVelocity()
         
        
        instead.
       
        
         This method was deprecated
      in API level 3.
        
        
        Use
        
         
          getScaledMinimumFlingVelocity()
         
        
        instead.
       
The maximum drawing cache size expressed in bytes.
        
         This method was deprecated
      in API level 3.
        
        
        Use
        
         
          getScaledScrollBarSize()
         
        
        instead.
       
The amount of friction applied to scrolls and flings.
        
         This method was deprecated
      in API level 3.
        
        
        Use
        
         
          getScaledTouchSlop()
         
        
        instead.
       
        
         This method was deprecated
      in API level 3.
        
        
        Use
        
         
          getScaledWindowTouchSlop()
         
        
        instead.
       
The amount of time that the zoom controls should be displayed on the screen expressed in milliseconds.
Report if the device has a permanent menu key available to the user.
As of Android 3.0, devices may not have a permanent menu key available. Apps should use the action bar to present menu options to users. However, there are some apps where the action bar is inappropriate or undesirable. This method may be used to detect if a menu key is present. If not, applications should provide another on-screen affordance to access functionality.