ChildDrawable addLayer ( Drawable dr , int [ ] themeAttrs , int id , int left , int top , int right , int bottom ) { final ChildDrawable childDrawable = createLayer ( dr ) ; childDrawable . mId = id ; childDrawable . mThemeAttrs = themeAttrs ; if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . KITKAT ) childDrawable . mDrawable . setAutoMirrored ( isAutoMirrored ( ) ) ; childDrawable . mInsetL = left ; childDrawable . mInsetT = top ; childDrawable . mInsetR = right ; childDrawable . mInsetB = bottom ; addLayer ( childDrawable ) ; mLayerState . mChildrenChangingConfigurations |= dr . getChangingConfigurations ( ) ; dr . setCallback ( this ) ; return childDrawable ; }
Add a new layer to this drawable . The new layer is identified by an id .