title: displayhtml text on my page
body: <p>Hi I am using these codes to show my <code>html</code> codes on my pages. I convert my doc to <code>html</code> by using <a href="https://wordhtml.com/" rel="nofollow noreferrer">https://wordhtml.com/</a> this web.
  but no color changes and others on my apps. page? what can ı do?</p>
  
  <pre><code> cb.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View view) {
  
              String htmlAsString = getString(R.string.html);
              Spanned htmlAsSpanned = Html.fromHtml(htmlAsString);
              vh = (TextView) findViewById(R.id.vh);
              vh.setText(htmlAsSpanned);
              ((TextView)findViewById(R.id.baslik)).setVisibility(View.GONE); ((Button)findViewById(R.id.cb)).setVisibility(View.GONE); ((Button)findViewById(R.id.geri)).setVisibility(View.VISIBLE); ((Button)findViewById(R.id.db)).setVisibility(View.GONE); ((Button)findViewById(R.id.bb)).setVisibility(View.GONE); ((Button)findViewById(R.id.ck)).setVisibility(View.GONE);
          }
      });
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/AyYXK.png" rel="nofollow noreferrer">MY html codes</a></p>
  
  <p>my string files:</p>
  
  <pre><code>&lt;string name="html"&gt;
    &lt;![CDATA[
  &lt;p&gt;&lt;strong&gt;&lt;span style="color: #ff0000;"&gt;RED BOLD&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="background-color:
  #00ff00;"&gt;FONT&lt;/span&gt;&lt;/p&gt; &lt;h1&gt;HEADER&lt;/h1&gt;
    ]]&gt;
  </code></pre>
  
  <p></p>
  
  <p>but here is result. there is not red color . what is problem? why red color doesn't see?</p>
  
  <p><a href="https://i.stack.imgur.com/AyYXK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AyYXK.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/A4jow.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/A4jow.png" alt="enter image description here"></a></p>