title: .setBackgroundColor with Hex Color Codes AndroidStudio
body: <pre><code>View targetView;
  targetView = (View)findViewById(R.id.mainlayout);
  </code></pre>
  
  <p>this works but</p>
  
  <pre><code>targetView.setBackgroundColor(Color.parseColor("#FFFFFF"));
  </code></pre>
  
  <p>and also this didn't work </p>
  
  <pre><code>targetView.setBackgroundColor(Color.pasrsehexString("#FFFFFF"));
  </code></pre>
  
  <p>Error: Cannot resolve method'parseColor(java.lang.String)'</p>
  
  <p>and  : Cannot resolve method'pasrsehexString(java.lang.String)'</p>
  
  <p>Pleas can somebodey help me and by the way i'm using Android Studio.</p>