title: How can I change Canvas at RecycleViewer?
body: <p>I have RecycleViewer with Canvas view in list item. How can I change backgrouncolor of Canvas view in my RecycleViewerAdapter ?</p>
  
  <p>Below is my onBindViewHolder method in my RecycleViewerAdapter</p>
  
  <pre><code>@Override
  public void onBindViewHolder(ViewHolder holder, int position) {
      holder.openprice.setText(mopenPrice.get(position));
  
  //How can I change backgrouncolor canvas view ????
  
  }
  </code></pre>
  
  <p>my ViewHolder</p>
  
  <pre><code>public ViewHolder(View itemView) {
          super(itemView);
  
          openprice = (TextView) itemView.findViewById(R.id.openprice);            
          viewx = (View) itemView.findViewById(R.id.viewx);
  
  
  
      }
  </code></pre>
  
  <p>itemlist.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="80dp"
  android:background="@drawable/border_listfavorite"
  &gt;
  
  &lt;view class="com.eusecom.exforu.MyView"
        android:layout_width="fill_parent"
        android:layout_height="20dp"
        android:layout_alignParentLeft="true"
        android:id="@+id/viewx"/&gt;
  
  &lt;TextView
      android:id="@+id/opentxt"
      android:text="@string/opentxt"
      android:singleLine="true"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentLeft="true"
      android:layout_below="@+id/viewx"
      /&gt;
  
  &lt;TextView
      android:id="@+id/openprice"
      android:singleLine="true"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_toRightOf="@+id/opentxt"
      android:layout_below="@+id/viewx"
      /&gt;
  
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>MyView.java</p>
  
  <pre><code>public class MyView extends View {
  public MyView(Context cxt, AttributeSet attrs) {
      super(cxt, attrs);
      setMinimumHeight(100);
      setMinimumWidth(100);
  }
  
  @Override
  protected void onDraw(Canvas cv) {
      cv.drawColor(Color.WHITE);
      Paint p = new Paint();
      p.setColor(Color.GREEN);
      p.setStrokeWidth(5);
      cv.drawLine(20, 0, 20, cv.getHeight(), p);
  }
  
  
  }
  </code></pre>