2015-02-07 99 views
0

我想使用从资源加载的可绘制I再次用作资源。我这样做是因为我需要设置可绘制的边界。使用drawable作为资源

Drawable smiley = d.Resources.GetDrawable(Resource.Drawable.emoji_1f600); 
smiley.SetBounds(0, 0, orig.LineHeight, orig.LineHeight); 

//Can't pass smiley like this, an int is expected. 
var imageSpan = new ImageSpan(_activity, smiley); 

回答