2015-02-07 105 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); 

回答

相關問題