LauncherActivity.IconResizer
 
    public class LauncherActivity.IconResizer 
 extends Object 
 
     
     
    
 
    实用程序类调整图标大小以匹配默认图标大小。
 
    摘要(Summary)
 
     
     
     
     
     
     
     
     
     
     
     
     
    Public constructors
 
     
     
     LauncherActivity.IconResizer
 
      
     LauncherActivity.IconResizer ()
 
      
      
     
     
     
     
    公共方法(Public methods)
 
     
     
     createIconThumbnail
 
      
     Drawable createIconThumbnail (Drawable icon)
 
     返回表示指定Drawable的缩略图的Drawable。 缩略图的大小由android.R.dimen.launcher_application_icon_size维度定义。 此方法不是线程安全的,只应在UI线程上调用。
 
      
       
        
        | 参数(Parameters) |  
       
 
        
        icon |  
         Drawable: The icon to get a thumbnail of. |  
       
 
       
     
 
      
       
        
        | 返回(Returns) |  
       
 
        
        Drawable |  
        A thumbnail for the specified icon or the icon itself if the thumbnail could not be created.  |