<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>QoopMk</author_name>
  <author_url>https://blog.hatena.ne.jp/QoopMk/</author_url>
  <blog_title>Qoop's Developers Blog</blog_title>
  <blog_url>https://qoopmk.hatenablog.jp/</blog_url>
  <categories>
    <anon>Android</anon>
    <anon>Kotlin</anon>
  </categories>
  <description>Xmlから変更 android:tint=&quot;@color/hoge&quot; コードから変更 ImageViewのTintColorをコードから変更したい場合バージョンごとに差異があるのでメモです。 API21以上向けの場合は以下のようにしておけば問題なしです。 /** * 画像のTintColorを設定 * * @param color カラー */ fun ImageView.setTintColor(@ColorInt color: Int) { ImageViewCompat.setImageTintList(this, ColorStateList.valueOf(color)) } /**…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fqoopmk.hatenablog.jp%2Fentry%2F2019%2F11%2F05%2F080000&quot; title=&quot;Android ImageViewのTintColorを変更する - Qoop&amp;#39;s Developers Blog&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>https://cdn-ak.f.st-hatena.com/images/fotolife/Q/QoopMk/20191104/20191104154015.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-11-05 08:00:00</published>
  <title>Android ImageViewのTintColorを変更する</title>
  <type>rich</type>
  <url>https://qoopmk.hatenablog.jp/entry/2019/11/05/080000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
