title: Set foreground to view programmatically
body: <p>I already programmatically setting background.Now I have to add a ripple effect to my LinearLayout, so I need to set not only background, but also <em>foreground</em></p>
  
  <p>Code:</p>
  
  <pre><code>        public override void OnBindViewHolder(RecyclerView.ViewHolder holder, int position)
          {
              var vh = holder as StaffViewHolder;
  
              vh.Layout.SetBackgroundColor(position % 2 == 0 ? Color.ParseColor("#ffffff") : Color.ParseColor("#f5f5f5"));
              //vh.Layout.Foreground = "?attr/selectableItemBackground";
              vh.StaffTv.Text = items[position].Name;
          }
  
          class StaffViewHolder : RecyclerView.ViewHolder
          {
              public TextView StaffTv { get; private set; }
              public LinearLayout Layout { get; private set; }
  
          public StaffViewHolder(View view) : base(view)
          {
              StaffTv = view.FindViewById&lt;TextView&gt;(Resource.Id.StaffItemLayout_textTv);
              Layout = view.FindViewById&lt;LinearLayout&gt;(Resource.Id.StaffItemLayout_layout);
          }
      }
  </code></pre>