Drawable LoadAndTint(Context context, int drawableId, int tintColor) { Drawable imageDrawable = context.GetDrawable(drawableId); if (imageDrawable == null) { throw new InvalidOperationException("The drawable with id " + drawableId + " does not exist"); } imageDrawable.SetTint(context.Resources.GetColor(tintColor)); return imageDrawable; }
public DividerItemDecorrection (Context context) { divider = context.GetDrawable (Resource.Drawable.divider); }