Exemplo n.º 1
0
		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;
		}
Exemplo n.º 2
0
		public DividerItemDecorrection (Context context)
		{
			divider = context.GetDrawable (Resource.Drawable.divider);
		}