<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ototokunsan</author_name>
  <author_url>https://blog.hatena.ne.jp/ototokunsan/</author_url>
  <blog_title>独り言</blog_title>
  <blog_url>https://ototokunsan.hatenadiary.jp/</blog_url>
  <categories>
    <anon>android</anon>
  </categories>
  <description>sのインデックスがindexStartからindexEndの部分の背景色がbgcolorの文字列をtvにセットする public void method(TextView tv,String s,int indexStart,int indexEnd,int bgcolor){ SpannableString spannable = new SpannableString(s); spannable.setSpan(new BackgroundColorSpan(bgcolor), indexStart, indexEnd,Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fototokunsan.hatenadiary.jp%2Fentry%2F2017%2F06%2F26%2F225312&quot; title=&quot;android TextViewに部分文字列に背景色を付けた文字列をセットする方法 - 独り言&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-06-26 22:53:12</published>
  <title>android TextViewに部分文字列に背景色を付けた文字列をセットする方法</title>
  <type>rich</type>
  <url>https://ototokunsan.hatenadiary.jp/entry/2017/06/26/225312</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
